[SOLVED] [HELP] Bad Syntax (Small code, dont worry :) )

Posts 1–5 of 5 · Page 1 of 1
[SOLVED] [HELP] Bad Syntax (Small code, dont worry :) )
CODE: My doDvars
Code:
doDvars {
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "helicopter_minigun", false );
}
CODE: My OnPlayerSpawned
Code:
onPlayerSpawned()
{
	self endon("disconnect");
                if(self isHost())
                {
                for(;;)
                {
                 self thread doDvars();
                }
                }

	for(;;)
	{
		self waittill("spawned_player");
	}
}
Help?
you are using a ;;;;;;;;; after ifself is host....
Yeah, so whenever I am host it will give me unlimited Chopper Gunners :/

Give me your fixed code.
Code:
onPlayerSpawned()
{
	self endon("disconnect");
	for(;;)
	{
		self waittill("spawned_player");
                if(self isHost())
                 {
                while(1)
                 {
                 self maps\mp\killstreaks\_killstreaks::giveKillstreak( "helicopter_minigun", false );
                 }
                 }
                
	}
}
/Marked as Solved
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us