08.09.2011, 18:54
okay i did this but i become errors-.-
ERRORS: C:\Users\Josh\Desktop\gta server\gamemodes\JoshRPG.pwn(61) : error 017: undefined symbol "SetPlayerTeamFromClass"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
PHP Code:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerTeamFromClass(playerid, classid) //Add this line to the end!
{
if(classid == 0)
{
gTeam[playerid] = TEAM_WORKERS;
SetPlayerTeam(playerid,TEAM_WORKERS);//You can delete this line if you want to allow team killing...
GameTextForPlayer(playerid,"~g~Workers",10,0);
}
else if(classid == 1)
{
gTeam[playerid] = TEAM_AGENTS;
SetPlayerTeam(playerid,TEAM_AGENTS);//Same for this!
GameTextForPlayer(playerid,"~r~Agents",10,0);
}
}
return 1;
}
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.