23.09.2014, 17:05
Errors.
Code.
pawn Код:
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\CpsNrbrs.pwn(262) : error 040: duplicate "case" label (value 29)
Код:
public OnPlayerSpawn(playerid) { IsPlayerPolice[playerid] = 0; switch(GetPlayerSkin(playerid)) { case 105 .. 107: { SetPlayerTeam(playerid, TEAM_GROVE); SetPlayerColor(playerid, COL_GREEN); } case 102 .. 104: { SetPlayerTeam(playerid, TEAM_BALLAS); SetPlayerColor(playerid, COL_PURPLE); } case 7 .. 73: { SetPlayerColor(playerid, COLOR_WHITE); } case 108 .. 110: { SetPlayerTeam(playerid, TEAM_VAGOS); SetPlayerColor(playerid, COL_YELLOW); } case 280 .. 285: { SetPlayerTeam(playerid, TEAM_POLICE); SetPlayerColor(playerid, COLOR_BLUE); IsPlayerPolice[playerid] = 1; } case 29 .. 100: { SetPlayerTeam(playerid, TEAM_DRUGDEALERS); SetPlayerColor(playerid, COL_RED); } case 114 .. 116: { SetPlayerTeam(playerid, TEAM_AZTECAS); SetPlayerColor(playerid, COL_LIGHTBLUE); } } return 1; }