Compile Error
#5

This is the website I got it from, the SA-MP Wiki, and the quote of the exact place I got it from:

Quote:
Код:
SetPlayerTeamFromClass(playerid, classid)
{
	if (classid == 0)
	{
		gTeam[playerid] = TEAM_GROVE;
	}
	else
	{
		gTeam[playerid] = TEAM_BALLA;
	}
}
Place that code OUTSIDE a function in your code (as it is a new function) and put these lines as the first things after the open curly braces in your OnPlayerRequestClass callback (notice the way the variables are not global so we are having to pass them to out function too):

Reply


Messages In This Thread
Compile Error - by Ladathion - 19.10.2010, 13:02
Re: Compile Error - by Slice - 19.10.2010, 13:05
Re: Compile Error - by Ladathion - 19.10.2010, 13:09
Re: Compile Error - by Slice - 19.10.2010, 13:10
Re: Compile Error - by Ladathion - 19.10.2010, 13:12
Re: Compile Error - by Slice - 19.10.2010, 13:13
Re: Compile Error - by Ladathion - 19.10.2010, 13:21
Re: Compile Error - by Slice - 19.10.2010, 13:23
Re: Compile Error - by Ladathion - 19.10.2010, 13:24
Re: Compile Error - by Slice - 19.10.2010, 13:26
Re: Compile Error - by Ladathion - 19.10.2010, 13:36
Re: Compile Error - by Slice - 19.10.2010, 13:48
Re: Compile Error - by Ladathion - 19.10.2010, 14:01

Forum Jump:


Users browsing this thread: 1 Guest(s)