• 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]
[-] The following 1 user says Thank You to SuperNovaAO for this post:
  • rotceh_dnih
  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 4,792 09-09-2013, 15:21
Last Post: surtek
Information Help How to edit new derived entry? (Solved) SSonic70 1 846 08-20-2013, 15:29
Last Post: Nekochan
  Duration killstreak The Tronuo 2 895 07-12-2013, 18:33
Last Post: The Tronuo
  Preview Tank Killstreak Yamato 16 4,055 05-27-2013, 14:47
Last Post: Yamato
  Help [QUESTION][IDEA] Invisible Wall 99IRock 8 2,156 03-03-2013, 14:37
Last Post: Nekochan
  [GSC] All Weapon/Camo/Perk/Killstreak Names DEREKTROTTER 33 12,894 01-30-2013, 15:26
Last Post: 99IRock
  Help [solved]red hitmark mod? founderlj 7 1,718 12-30-2012, 23:06
Last Post: Pozzuh
  !weapon Plugin help pls [solved] Hallla 0 723 12-30-2012, 14:04
Last Post: Hallla
  Help !giveammo Plugin doesnt work [solved] Hallla 3 1,308 12-29-2012, 20:53
Last Post: Hallla
  Help OnPlayerConnect [Solved] 99IRock 4 1,605 11-18-2012, 10:07
Last Post: 99IRock

Forum Jump:


Users browsing this thread: 1 Guest(s)