PDA

View Full Version : Need Help Error



AzreaL
6th February 2013, 22:25
******* script compile error *******
bad syntax: (file 'maps/mp/gametypes/_tdm.gsc', line 251)
{
*
************************************

The Line ;


{
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");
}

Earliboy
6th February 2013, 22:38
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.