24.05.2014, 17:40
Код:
C:\Users\RON\Downloads\american\gamemodes\PastRP.pwn(13445) : error 001: expected token: ")", but found "{" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
CMD:su(playerid, params[]) { new playerb, string[128]; if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command."); if(!IsACop(playerid) && !IsAFBI(playerid) && !IsAHSF(playerid) && !IsASheriff(playerid) && !IsASATF(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not an LSPD Oficer/FBI/HSF."); if(!PlayerInfo[playerid][pFacDuty]) return SendClientMessage(playerid, COLOR_GREY, "You are not on duty."); if(sscanf(params, "us[64]", playerb, params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /su [playerid] [charge]"); if(!IsPlayerLoggedIn(playerb)) return SendClientMessage(playerid, COLOR_GREY, "Invalid player id."); if(IsACop(playerb) && !IsAFBI(playerb) && !IsASheriff(playerb) && !IsAHSF(playerb)) return SendClientMessage(playerid, COLOR_GREY, "You can't charge an LSPD Officer/FBI/HSF/SD."); if(PlayerInfo[playerb][pWanted] >= 6) return SendClientMessage(playerid, COLOR_GREY, "Player has the maximum wanted level possible."); AddZaiatWantedLevel(playerb, params); PlayerPlaySound(playerid,1054,0.0,0.0,0.0); PlayerPlaySound(playerb,1054,0.0,0.0,0.0); format(string, sizeof(string), " You have commited a Crime ( %s ). Reporter: %s.", params, RPN(playerid)); SendClientMessage(playerb, COLOR_LIGHTRED, string); format(string, sizeof(string), "LSPD/FBI/HSF/Sheriff: %s has charged %s for '%s'.", RPN(playerid), RPN(playerb), params); foreach(Player, i) { if(IsACop(i) && !IsAFBI(playerid && !IsASheriff(playerid)) { SendClientMessage(i, COLOR_BLUE, string); PlayCrimeReportForPlayer(i, playerb, 19); } } return 1; }