Results 1 to 6 of 6
  1. #1
    pakadz's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Mordor
    Posts
    3
    Reputation
    10
    Thanks
    0
    My Mood
    Crappy

    Killstreak mod help

    Hi guys! I am making a custom mod for my clan, and i have encountered problems with this piece of code, that is supposed to give you killstreaks. Basically, when i add it into the gsc, and running using self thread, aiw gives me syntax errors when trying to test run it in private match. Can You guys try to tell me where the mistake sits? The code is
    Code:
    #include maps\mp\_utility;
    
    doKillstreaks() 
    {
    self endon ("death");
    
    self.startscore = self.pers["kills"];
    
    while(1) {
    if(self.killcount != self.pers["kills"] - self.startscore) {
    self.killcount = self.pers["kills"] - self.startscore;
    switch(self.killcount) 
    {
    case 2:
    self notify("newstreak");
    		
            currentWeapon = self getCurrentWeapon();
            if ( currentWeapon == "mp_deserteagle" )
            {
                self setWeaponAmmoClip( currentWeapon, 3 );
             }
    		 currentoffhand = self GetCurrentOffhand();
            if ( currentoffhand == "mp_deserteagle" )
            {
                self setWeaponAmmoClip( currentoffhand, 3 );
            }
    break;
    }
    }
    wait 0.05;
    }
    }
    I promise to realease the mod if i get it to work.

  2. #2
    Moto's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Bay Area, CA
    Posts
    13,057
    Reputation
    707
    Thanks
    13,438
    My Mood
    Blah
    @Nachos
    @Jorndel
    @Elio

    I'm not really a GSC expert, they could help.

    Also, moved to gsc help.

  3. The Following User Says Thank You to Moto For This Useful Post:

    pakadz (10-16-2011)

  4. #3
    pakadz's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Mordor
    Posts
    3
    Reputation
    10
    Thanks
    0
    My Mood
    Crappy
    Bump. Come on guys, you can do it D:

  5. #4
    Xray Hunter's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    37
    Reputation
    10
    Thanks
    0
    My Mood
    Angelic
    Erm, have you threaded the killstreak file as it were showen in the tutorial?

    aslo, you should just add then code:
    Code:
    doKillstreaks() 
    {
    self endon ("death");
    
    self.startscore = self.pers["kills"];
    
    while(1) {
    if(self.killcount != self.pers["kills"] - self.startscore) {
    self.killcount = self.pers["kills"] - self.startscore;
    switch(self.killcount) 
    {
    case 2:
    self notify("newstreak");
    		
            currentWeapon = self getCurrentWeapon();
            if ( currentWeapon == "mp_deserteagle" )
            {
                self setWeaponAmmoClip( currentWeapon, 3 );
             }
    		 currentoffhand = self GetCurrentOffhand();
            if ( currentoffhand == "mp_deserteagle" )
            {
                self setWeaponAmmoClip( currentoffhand, 3 );
            }
    break;
    }
    }
    wait 0.05;
    }
    }
    and thread it in the doDvars()

    and you should be fine

    @Moto
    Jorndel is not on this site so...
    But you can mention me instead. (Because I am Jorndels brother )
    And then I can ask him if he it's needed
    Last edited by Xray Hunter; 10-17-2011 at 04:17 AM.

  6. #5
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,986
    Reputation
    176
    Thanks
    913
    My Mood
    Blah
    Quote Originally Posted by Xray Hunter View Post
    Erm, have you threaded the killstreak file as it were showen in the tutorial?

    aslo, you should just add then code:
    Code:
    doKillstreaks() 
    {
    self endon ("death");
    
    self.startscore = self.pers["kills"];
    
    while(1) {
    if(self.killcount != self.pers["kills"] - self.startscore) {
    self.killcount = self.pers["kills"] - self.startscore;
    switch(self.killcount) 
    {
    case 2:
    self notify("newstreak");
            
            currentWeapon = self getCurrentWeapon();
            if ( currentWeapon == "mp_deserteagle" )
            {
                self setWeaponAmmoClip( currentWeapon, 3 );
             }
             currentoffhand = self GetCurrentOffhand();
            if ( currentoffhand == "mp_deserteagle" )
            {
                self setWeaponAmmoClip( currentoffhand, 3 );
            }
    break;
    }
    }
    wait 0.05;
    }
    }
    and thread it in the doDvars()

    and you should be fine
    Since he gets a syntax error he is...

    *looked at it*

    Code:
    doKillstreaks() 
    {
    self endon ("death");
    
    self.startscore = self.pers["kills"];
    
    while(1) {
    if(self.killcount != self.pers["kills"] --[COLOR=#696969] self.startscore) {
    self.killcount = self.pers["kills"] --self.startscore;
    switch(self.killcount) 
    {
    case 2:
    self notify("newstreak");
            
            currentWeapon = self getCurrentWeapon();
            if ( currentWeapon == "mp_deserteagle" )
            {
                self setWeaponAmmoClip( currentWeapon, 3 );
             }
             currentoffhand = self GetCurrentOffhand();
            if ( currentoffhand == "mp_deserteagle" )
            {
                self setWeaponAmmoClip( currentoffhand, 3 );
            }
    break;
    }
    }
    wait 0.05;
    }
    }


    You need 2 "-"'s. You can' write a single that way. A singe "-" means "subtract".
    Last edited by Nachos; 10-18-2011 at 03:13 PM.


    The lines in my Steam are i's

  7. The Following User Says Thank You to Nachos For This Useful Post:

    pakadz (10-19-2011)

  8. #6
    pakadz's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Mordor
    Posts
    3
    Reputation
    10
    Thanks
    0
    My Mood
    Crappy
    Thanks, dude you are my new hero. Solved

Similar Threads

  1. [Help Request] mod help
    By ac10054 in forum Combat Arms Mod Help
    Replies: 2
    Last Post: 10-03-2011, 10:12 PM
  2. [Help Request] Scope Modding Help! D:
    By Molecule in forum Combat Arms Mod Help
    Replies: 10
    Last Post: 09-18-2011, 07:20 PM
  3. [Help Request] Visual mods help
    By faron123123 in forum Vindictus Help
    Replies: 1
    Last Post: 08-24-2011, 12:25 AM
  4. [Help Request] mods help
    By zerg32196 in forum Minecraft Help
    Replies: 0
    Last Post: 07-07-2011, 10:51 PM
  5. [Help Request] Combat arms rez mod. (Help!!!)
    By legokiller45 in forum Combat Arms Help
    Replies: 3
    Last Post: 06-24-2011, 11:48 AM