SetPlayerTeamFromClass - 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)
+--- Thread: SetPlayerTeamFromClass (
/showthread.php?tid=406054)
SetPlayerTeamFromClass -
acade - 08.01.2013
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;
}
}
Re: SetPlayerTeamFromClass -
RedCrossER - 08.01.2013
stock SetPlayerTeamFromClas()
{
//code here
}
Re: SetPlayerTeamFromClass -
acade - 08.01.2013
Used this, Thanks anyway Red
http://forum.sa-mp.com/showthread.ph...rTeamFromClass