SetPlayerTeamFromClass
#1

For some reason, I'm getting an error on this, I believe it's still in SA:MP?

Quote:

C:\Users\Andrew\Documents\SAMP\Los Santos Gang Wars\0.01\gamemodes\0.01.pwn(413) : error 017: undefined symbol "SetPlayerTeamFromClass"

Код:
	SetPlayerTeamFromClass(playerid, classid)
	{
  		if(classid == 0)
   		{
   			gTeam[playerid] = TEAM_US;
   			return 1;
   		}
		else if(classid == 1)
  		{
  			gTeam[playerid] = TEAM_RUS;
  			return 1;
		}
	}
Reply
#2

stock SetPlayerTeamFromClas()
{
//code here
}
Reply
#3

Used this, Thanks anyway Red
http://forum.sa-mp.com/showthread.ph...rTeamFromClass
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)