Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOLVED|Help with new mod idea/KILLSTREAK SWITCHCHOUT
#11
(02-28-2011, 19:47)iAegle Wrote: it doesnt show \ for some weird reason

Happens because you use the PHP tags. I think I'll disable those since they are WRONG for this.
For the millionth time: GSc needs to be formatted as C+ so take [code=cpp]...
I never told anyone to use [php]
Reply

#12
ok been trying it and still i get a bad syntax error
and thanks the code tag is the way to go
Reply

#13
myself and a friendly forum user have been trying a few things and altered the code somewhat however the error remain's this is what im now trying
Code:
randomKillstreak()
{
    switch(RandomInt(15))
    {
        case 0:
            self.randomKillstreak = "radar_mp";
        break;
        case 1:
            self.randomKillstreak = "counteruav_mp";
        break;
        case 2:
            self.randomKillstreak = "tow_turret_drop_mp";
        break;
        case 3:
            self.randomKillstreak = "supplydrop_mp";
        break;
        case 4:
            self.randomKillstreak = "turret_drop_mp";
        break;
        case 5:
            self.randomKillstreak = "mortar_mp";
        break;
        case 6:
            self.randomKillstreak = "napalm_mp";
        break;
        case 7:
            self.randomKillstreak = "rcbomb_mp";
        break;
        case 8:
            self.randomKillstreak = "helicopter_mp";
        break;
        case 9:
            self.randomKillstreak = "radardirection_mp";
        break;
             10:
            self.randomKillstreak = "m220_tow_drop_mp";
        break;
        case 11:
            self.randomKillstreak = "airstrike_mp";
        break;
        case 12:
            self.randomKillstreak = "helicopter_gunner_mp";
        break;
        case 13:
            self.randomKillstreak = "helicopter_player_firstperson_mp";
        break;
        case 14:
            self.randomKillstreak = "dogs_mp";
        break;
    }
        self maps\mp\gametypes\_hardpoints::giveKillstreak(self.randomKillstreak );

}
Reply

#14
You got helped on the previous page already...

self maps\mp\gametypes\_hardpoints::giveKillstreak(self.randomKillstreak, self.randomKillstreak );
Reply

#15
Ie
Code:
randomKillstreak()
{
    switch(RandomInt(15))
    {
        case 0:
            self.randomKillstreak = "radar_mp";
        break;
        case 1:
            self.randomKillstreak = "counteruav_mp";
        break;
        case 2:
            self.randomKillstreak = "tow_turret_drop_mp";
        break;
        case 3:
            self.randomKillstreak = "supplydrop_mp";
        break;
        case 4:
            self.randomKillstreak = "turret_drop_mp";
        break;
        case 5:
            self.randomKillstreak = "mortar_mp";
        break;
        case 6:
            self.randomKillstreak = "napalm_mp";
        break;
        case 7:
            self.randomKillstreak = "rcbomb_mp";
        break;
        case 8:
            self.randomKillstreak = "helicopter_mp";
        break;
        case 9:
            self.randomKillstreak = "radardirection_mp";
        break;
             10:
            self.randomKillstreak = "m220_tow_drop_mp";
        break;
        case 11:
            self.randomKillstreak = "airstrike_mp";
        break;
        case 12:
            self.randomKillstreak = "helicopter_gunner_mp";
        break;
        case 13:
            self.randomKillstreak = "helicopter_player_firstperson_mp";
        break;
        case 14:
            self.randomKillstreak = "dogs_mp";
        break;
    }
        self maps\mp\gametypes\_hardpoints::giveKillstreak(self.randomKillstreak, self.randomKillstreak );

}
if so yes this was tested many time's before dismissal of user error it was then suggested to remove the second self.randomkillstreak as per my last post, in all case's i am receiving a bad syntax error on trying to load,my mod run's fine when i remove this and i have tested it on a new _rank.gsc file from the BO_GameSCript.zip aswell.

Edit. thought i might aswell try it again and still no dice ether way
would anyone liketo see im code in whole ? not that i think it will help because all my mods work without this killstreak code
Reply

#16
fixed code as follow's
Code:
randomKillstreak()
{
    switch(RandomInt(15))
    {
        case 0:
            self.randomKillstreak = "radar_mp";
        break;
        case 1:
            self.randomKillstreak = "counteruav_mp";
        break;
        case 2:
            self.randomKillstreak = "tow_turret_drop_mp";
        break;
        case 3:
            self.randomKillstreak = "supplydrop_mp";
        break;
        case 4:
            self.randomKillstreak = "turret_drop_mp";
        break;
        case 5:
            self.randomKillstreak = "mortar_mp";
        break;
        case 6:
            self.randomKillstreak = "napalm_mp";
        break;
        case 7:
            self.randomKillstreak = "rcbomb_mp";
        break;
        case 8:
            self.randomKillstreak = "helicopter_mp";
        break;
        case 9:
            self.randomKillstreak = "radardirection_mp";
        break;
        case 10:
            self.randomKillstreak = "m220_tow_drop_mp";
        break;
        case 11:
            self.randomKillstreak = "airstrike_mp";
        break;
        case 12:
            self.randomKillstreak = "helicopter_gunner_mp";
        break;
        case 13:
            self.randomKillstreak = "helicopter_player_firstperson_mp";
        break;
        case 14:
            self.randomKillstreak = "dogs_mp";
        break;
    }
        self maps\mp\gametypes\_hardpoints::giveKillstreak(self.randomKillstreak );

}
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help [C#] WebClient how to know real url [solved] narkos 21 12,978 09-09-2013, 15:21
Last Post: surtek
Information Help How to edit new derived entry? (Solved) SSonic70 1 2,737 08-20-2013, 15:29
Last Post: Nekochan
  Duration killstreak The Tronuo 2 2,794 07-12-2013, 18:33
Last Post: The Tronuo
  Preview Tank Killstreak Yamato 16 10,533 05-27-2013, 14:47
Last Post: Yamato
  Help [QUESTION][IDEA] Invisible Wall 99IRock 8 5,496 03-03-2013, 14:37
Last Post: Nekochan
  [GSC] All Weapon/Camo/Perk/Killstreak Names DEREKTROTTER 33 25,989 01-30-2013, 15:26
Last Post: 99IRock
  Help [solved]red hitmark mod? founderlj 7 4,723 12-30-2012, 23:06
Last Post: Pozzuh
  !weapon Plugin help pls [solved] Hallla 0 1,972 12-30-2012, 14:04
Last Post: Hallla
  Help !giveammo Plugin doesnt work [solved] Hallla 3 3,558 12-29-2012, 20:53
Last Post: Hallla
  Help OnPlayerConnect [Solved] 99IRock 4 4,135 11-18-2012, 10:07
Last Post: 99IRock

Forum Jump:


Users browsing this thread:
3 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.