SA-MP Forums Archive
Need help!!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help!!! (/showthread.php?tid=122975)



Need help!!! - [Bm]rap45 - 24.01.2010

Ok so i was creating a DM script and i got most of it to work but i can't get this error to work ( i can't fix it ) i've looked for a solution but i haven't found one.

Код:
error 017: undefined symbol "classid"
And this are the lines

Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerToTeamColor(playerid);
  
  	if (classid == 0)
	{
		gTeam[playerid] = TEAM_GROVE;
	}
	else
	{
		gTeam[playerid] = TEAM_BALLA;
	}
	return 1;
}



Re: Need help!!! - silvan - 24.01.2010

erm i guess you need to put that under " OnPlayerRequestClass(playerid,classid) " Callback


Re: Need help!!! - [Bm]rap45 - 24.01.2010

Quote:
Originally Posted by silvan
erm i guess you need to put that under " OnPlayerRequestClass(playerid,classid) " Callback
Oh i see the problem there, thank you for helping me.


Re: Need help!!! - silvan - 24.01.2010

np