Posts: 1,047
Threads: 23
Joined: Jun 2009
Quote:
Originally Posted by Twisted_Insane
OMG, you just said you don't have it, but what the hell is this then?
Anyways, comparing with "else if" isn't a good idea, switch the cases here:
pawn Код:
SetPlayerToTeamColour(playerid) { switch(gTeam[playerid]) { case TEAM_COP: { SetPlayerColor(playerid, COLOR); } case TEAM_ARMY: { SetPlayerColor(playerid, COLOR); } case TEAM_ncis: { SetPlayerColor(playerid, COLOR); } case TEAM_MEDIC: { SetPlayerColor(playerid, COLOR); } case TEAM_CARFIX: { SetPlayerColor(playerid, COLOR); } case TEAM_DRIVER: { SetPlayerColor(playerid, COLOR); } } }
|
You forgot to add the default case (team >= 9):
pawn Код:
default: SetPlayerColor(playerid,COLOR_WHITE);