26.07.2010, 13:19
I have this:
But for some reason every class that I choose is Grove.. I need help.
pawn Код:
public SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 0)
{
gTeam[playerid] = TEAM_GROVE;
}
else if (classid == 1)
{
gTeam[playerid] = TEAM_GROVE;
}
else if (classid == 2)
{
gTeam[playerid] = TEAM_GROVE;
}
else if (classid == 3)
{
gTeam[playerid] = TEAM_BALLA;
}
else if (classid == 4)
{
gTeam[playerid] = TEAM_BALLA;
}
else if (classid == 5)
{
gTeam[playerid] = TEAM_BALLA;
}
}