Results 1 to 2 of 2

Thread: Need Help Error

  1. #1
    Private
    Join Date
    Feb 2013
    Posts
    11
    Thanks
    3
    Thanked 1 Time in 1 Post

    Need Help Error

    ******* script compile error *******
    bad syntax: (file 'maps/mp/gametypes/_tdm.gsc', line 251)
    {
    *
    ************************************

    The Line ;

    Code:
    {
    	if(!level.splitscreen)
    		iprintln(&"MP_DISCONNECTED", self);
    
    	if(isdefined(self.pers["team"]))
    	{
    		if(self.pers["team"] == "allies")
    			setplayerteamrank(self, 0, 0);
    		else if(self.pers["team"] == "axis")
    			setplayerteamrank(self, 1, 0);
    		else if(self.pers["team"] == "spectator")
    			setplayerteamrank(self, 2, 0);
    	}
    
    	
    	lpselfnum = self getEntityNumber();
    	lpGuid = self getGuid();
    	logPrint("Q;" + lpGuid + ";" + lpselfnum + ";" + self.name + "\n");
    }
    Last edited by AzreaL; 6th February 2013 at 21:27.

  2. #2
    Private First Class Earliboy's Avatar
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    130
    Thanks
    5
    Thanked 88 Times in 61 Posts
    It looks like you miss the thread/function. Normal function is:
    function()
    {
    Stuff();
    }

    And please continue in your old thread instead opening a new thread for every short error.
    No ... No ... this is not possible .......

  3. The Following User Says Thank You to Earliboy For This Useful Post:

    kung foo man (7th February 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •