08.09.2011, 18:15
Remove the #define SetPlayerTeamFromClass.
Then put on top on OnPlayerRequestClass:
Then, put this OUTSIDE any public!
Hope this helps
Then put on top on OnPlayerRequestClass:
pawn Code:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerTeamFromClass(playerid, classid);
// Your function
}
pawn Code:
SetPlayerTeamFromClass(playerid, classid)
{
if(classid == 0)
{
// your code
}
// etcetera
}