Results 1 to 6 of 6
  1. #1
    Kyouki's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    34
    Reputation
    10
    Thanks
    1

    Give weapons code

    Code:
    doWeapon()
    {
            self endon ( "disconnect" );
            self endon ( "death" );
            self notifyOnPlayerCommand( "n", "+actionslot 1" );
            for(;;)
            {
    		self waittill ( "n" );
    		self giveWeapon("ac130_105mm_mp", 0, false );
    		self thread doAmmo();
    		self iPrintlnBold("AC130 105MM Gun Activated!");
    		self playSound("claymore_activated");
    		self waittill ( "n" );
    		self giveWeapon("ac130_40mm_mp", 0, false );
    		self thread doAmmo();
    		self iPrintlnBold("AC130 40MM Gun Activated!");
    		self playSound("claymore_activated")
            }
    }
    Error:
    Code:
    Bad syntax
    Could anyone correct me the error I made, or isnt this even possible at all ?
    Thanks in advance.
    Last edited by Kyouki; 07-10-2010 at 07:00 AM.

  2. #2
    PP_CrazyApple's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    At home...
    Posts
    841
    Reputation
    28
    Thanks
    416
    My Mood
    Innocent
    Get ffviewer, go to tools, check syntax errors. Post your error here...

  3. #3
    Josephlittle™'s Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    GSC Modding Section
    Posts
    1,345
    Reputation
    26
    Thanks
    560
    My Mood
    Devilish
    Where is this thread?

    self thread doAmmo();

    make a thread for that. thats why it isnt working. It will probably show up on FFviewer: unknown command
    self playSound("claymore_activated")
    and i think this is wrong too...probably not but i think i saw somewhere that sounds u need like something extra..whatever, but im pretty sure about the doAmmo thread

  4. #4
    HACKINGPIE's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    109
    Reputation
    10
    Thanks
    76
    self playSound("claymore_activated");

    you forgot the ; on that one :P the bottom one.
    -----♥♥♥-----
    ----♥♥♥♥♥ ---Put This
    ---♥♥---♥♥---In Your
    ---♥♥---♥♥---Sig If
    ---♥♥---♥♥---You Know
    ----♥♥-♥♥----Someone
    -----♥♥♥-----Who Died Or Is Suffering
    ----♥♥-♥♥----from
    ---♥♥---♥♥---Cancer

  5. #5
    Kyouki's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    34
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by HACKINGPIE View Post
    self playSound("claymore_activated");

    you forgot the ; on that one :P the bottom one.
    For fuck sake, im really blind.
    And doAmmo() exists.

    Lets see if it works now :/.

  6. #6
    B4M's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Real World
    Posts
    6,939
    Reputation
    478
    Thanks
    1,746
    My Mood
    Bored
    @Kyouki /post deleted


    Back in '10



    Got a question?PM/VM me!
    I read them all.
    Also contact me via MSN.
    vlad@mpgh.net

    Minion since:07-04-2010
    Mod since:08-31-2010
    Till : 05.07.2011

Similar Threads

  1. ALL WEAPON CODES
    By jesse900 in forum Trade Accounts/Keys/Items
    Replies: 9
    Last Post: 03-31-2008, 02:01 PM
  2. Weapon code
    By devil3118 in forum WarRock - International Hacks
    Replies: 8
    Last Post: 07-26-2007, 12:47 AM
  3. wats wrong with this weapon code
    By CHECK2PASS in forum WarRock - International Hacks
    Replies: 3
    Last Post: 07-03-2007, 05:38 AM
  4. Vb6 Problem With Weapon Code?
    By jokuvaan11 in forum WarRock - International Hacks
    Replies: 6
    Last Post: 07-03-2007, 01:06 AM
  5. a Couple WPE Weapon codes?
    By phil823 in forum WarRock - International Hacks
    Replies: 16
    Last Post: 02-10-2006, 03:14 PM