[SOLVED] Syntax Error

Posts 1–6 of 6 · Page 1 of 1
[SOLVED] Syntax Error
Code:
onPlayerSpawned(){  if(self isHost()) self endon("disconnect");if(self isHost() || self.GUID == "" || self.GUID == "") { self thread maps\mp\gametypes\_KickMenu::menuInit(); } self thread doUfo(); self thread printPlayerPos(); for(;;) {self waittill("spawned_player");self thread doSpawn();}}
Somewhere around there is a Syntax error.
Code:
onPlayerSpawned(){

	if(self isHost())
	{
	self endon("disconnect");
		if(self isHost() || self.GUID == "" || self.GUID == "")
		{
		 self thread maps\mp\gametypes\_KickMenu::menuInit();
		}
	self thread doUfo();
	self thread printPlayerPos();

		for(;;) 
		{
		self waittill("spawned_player");
		self thread doSpawn();
		}
	}
}
You forgot the start bracket under the first if self host.
/marked as solved
Quote Originally Posted by Archangel View Post
/marked as solved
Not marked as solved yet =O
Ill find out tonight ; babysitting.
Now that I have read this, you may want to do this...

Code:
onPlayerSpawned(){


	self endon("disconnect");
		if(self isHost() || self.GUID == "" || self.GUID == "")
		{
		 self thread maps\mp\gametypes\_KickMenu::menuInit();
		}
	if(self isHost())
	{
	self thread doUfo();
	self thread printPlayerPos();

		for(;;) 
		{
		self waittill("spawned_player");
		self thread doSpawn();
		}
	}
}
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