Give weapons code

Posts 1–6 of 6 · Page 1 of 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.
Get ffviewer, go to tools, check syntax errors. Post your error here...
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
self playSound("claymore_activated");

you forgot the ; on that one :P the bottom one.
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 :/.
@Kyouki /post deleted
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us