08.02.2013, 15:54
you forgot to put ; at the end
try this
try this
pawn Код:
gTeam[MAX_PLAYERS];
SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_HOMELESS)
{
SetPlayerColor(playerid, TEAM_HOMELESS_COLOR);
}
else if (gTeam[playerid] == TEAM_HOMELESS_2)
{
SetPlayerColor(playerid, TEAM_HOMELESS_2_COLOR);
}
}