23.09.2014, 14:28
pawn Код:
error 040: duplicate "case" label (value 29)
Код:
case 29 .. 100:
error 040: duplicate "case" label (value 29)
case 29 .. 100:
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; }
case 7 .. 73:
{
SetPlayerColor(playerid, COLOR_WHITE);
}
case 29 .. 100:
{
SetPlayerTeam(playerid, TEAM_DRUGDEALERS);
SetPlayerColor(playerid, COL_RED);
}
case 7 .. 73: { SetPlayerColor(playerid, COLOR_WHITE); } case 29 .. 100: { SetPlayerTeam(playerid, TEAM_DRUGDEALERS); SetPlayerColor(playerid, COL_RED); }
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 7 .. 73: { SetPlayerColor(playerid, COLOR_WHITE); } case 29 .. 100: { SetPlayerTeam(playerid, TEAM_DRUGDEALERS); SetPlayerColor(playerid, COL_RED); } case 114 .. 116: { SetPlayerTeam(playerid, TEAM_AZTECAS); SetPlayerColor(playerid, COL_LIGHTBLUE); } } return 1; }
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\CpsNrbrs.pwn(256) : error 040: duplicate "case" label (value 7)
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\CpsNrbrs.pwn(260) : error 040: duplicate "case" label (value 29)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.