21.09.2014, 03:58
pawn Код:
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\CpsNrbrs.pwn(171 -- 172) : error 029: invalid expression, assumed zero
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\CpsNrbrs.pwn(173) : error 017: undefined symbol "TEAM_GROVE"
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\CpsNrbrs.pwn(176 -- 177) : error 029: invalid expression, assumed zero
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\CpsNrbrs.pwn(178) : error 017: undefined symbol "TEAM_BALLAS"
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\CpsNrbrs.pwn(181 -- 182) : error 029: invalid expression, assumed zero
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\CpsNrbrs.pwn(183) : error 017: undefined symbol "TEAM_VAGOS"
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\CpsNrbrs.pwn(183) : error 029: invalid expression, assumed zero
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\CpsNrbrs.pwn(184 -- 185) : error 001: expected token: ",", but found "}"
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\CpsNrbrs.pwn(186 -- 187) : error 029: invalid expression, assumed zero
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\CpsNrbrs.pwn(188) : error 017: undefined symbol "TEAM_AZTECAS"
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\CpsNrbrs.pwn(192) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
Код:
public OnPlayerSpawn(playerid) { 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 108 .. 110 { SetPlayerTeam(playerid, TEAM_VAGOS): SetPlayerColor(playerid, COL_YELLOW } case 114 .. 116 { SetPlayerTeam(playerid, TEAM_AZTECAS); SetPlayerColor(playerid, COL_LIGHTBLUE); } } return 1; }