13.10.2014, 18:01
Quote:
C:\Users\Callum.Acer\Documents\pla.pwn(7033 : error 014: invalid statement; not in switch C:\Users\Callum.Acer\Documents\pla.pwn(7033 : error 029: invalid expression, assumed zero C:\Users\Callum.Acer\Documents\pla.pwn(70344) : error 021: symbol already defined: "format" C:\Users\Callum.Acer\Documents\pla.pwn(70346) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
Код:
case 20: { switch(PlayerInfo[playerid][pRank]) { case 1: rank = "Deputy"; case 2: rank = "Deputy (II)"; case 3: rank = "Sergeant"; case 4: rank = "Lieutenant"; case 5: rank = "Captain"; case 6: rank = "Commander"; case 7: rank = "Deputy Commisioner"; case 8: rank = "Commisioner"; default: rank = "Cadet"; } switch(PlayerInfo[playerid][pDivision]) { case 1: division = "(PATROL) "; case 2: division = "(CIB) "; case 3: division = "(TRAFFIC) "; case 4: division = "(TNT) "; case 5: division = "(HVE) "; default: division = ""; } format(string, sizeof(string), "** %s%s %s: %s **", rank, division, GetPlayerNameEx(playerid), params); SendRadioMessage(19, RADIO, string); } } default: THIS IS LINE 70338 { SendClientMessageEx(playerid,COLOR_GRAD2,"You're not in a faction."); return 1; } } format(string, sizeof(string), "(radio) %s",params); // THIS IS LINE 70344 SetPlayerChatBubble(playerid,string,COLOR_WHITE,15.0,5000); return 1; // THIS IS LINE 70346 }