Results 1 to 6 of 6
  1. #1
    CainFool's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    313
    Reputation
    11
    Thanks
    143
    My Mood
    Angelic

    [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.

  2. #2
    r_arraz's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Your desktop h4x1n up your compooter
    Posts
    370
    Reputation
    16
    Thanks
    76
    My Mood
    Cool
    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.
    Last edited by r_arraz; 08-28-2010 at 07:34 AM.





  3. #3
    Archangel's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Between Both Worlds
    Posts
    8,868
    Reputation
    1021
    Thanks
    8,867
    My Mood
    Angelic
    /marked as solved

  4. #4
    JamesA1994's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    The dark side
    Posts
    1,703
    Reputation
    271
    Thanks
    529
    My Mood
    Psychedelic
    Quote Originally Posted by Archangel View Post
    /marked as solved
    Not marked as solved yet =O
    CoD Minion: Jan 13th 2011 to April 11 2011
    MMORPG Minion Since: March 28th 2011 to April 11 2011

    Don't be afraid to rep, you aren't loosing anything!
    Don't forget your P&Q's. Press the thanks button if someone has helped.
    jamesa1994@hotmail.com

  5. #5
    CainFool's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    313
    Reputation
    11
    Thanks
    143
    My Mood
    Angelic
    Ill find out tonight ; babysitting.

  6. #6
    JamesA1994's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    The dark side
    Posts
    1,703
    Reputation
    271
    Thanks
    529
    My Mood
    Psychedelic
    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();
    		}
    	}
    }
    CoD Minion: Jan 13th 2011 to April 11 2011
    MMORPG Minion Since: March 28th 2011 to April 11 2011

    Don't be afraid to rep, you aren't loosing anything!
    Don't forget your P&Q's. Press the thanks button if someone has helped.
    jamesa1994@hotmail.com

Similar Threads

  1. [Solved]Tool to find out what causes the Syntax error ?
    By prisma in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 5
    Last Post: 09-14-2010, 02:40 AM
  2. [SOLVED] BAD SYNTAX ERROR
    By taylorjayne95 in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 08-28-2010, 01:03 PM
  3. [SOLVED]onplayerspawned(); Syntax Error
    By CainFool in forum Call of Duty Modern Warfare 2 Help
    Replies: 6
    Last Post: 08-25-2010, 09:56 AM
  4. [SOLVED] [Help] First mod but syntax error
    By prisma in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 08-18-2010, 03:30 AM
  5. [SOLVED] Syntax Error
    By Shucker in forum Call of Duty Modern Warfare 2 Help
    Replies: 11
    Last Post: 07-22-2010, 10:22 AM