12.12.2009, 09:58
I'm trying to make 2 teams as it is showed at wiki-samp
https://sampwiki.blast.hk/wiki/PAWN_tutorial
C:\Users\Onno\Documents\ALLIN1\da\filterscripts\te ams.pwn(55) : error 017: undefined symbol "SetPlayerTeamFromClass"
https://sampwiki.blast.hk/wiki/PAWN_tutorial
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 0)
{
gTeam[playerid] = TEAM_GROVE;
}
else
{
gTeam[playerid] = TEAM_BALLA;
}
}
return 1;
}