16.06.2012, 18:31
Quote:
Show us some code for god sakes, we can't help you without it.
pawn Код:
That means you should change it to something like this: pawn Код:
|
Код:
CMD:report(playerid,params[]) { new id, reason[35], string[128], sendername[MAX_PLAYER_NAME], name[MAX_PLAYER_NAME]; if(sscanf(params,"uz", id, reason)) return SendClientMessage(playerid, COLOR_SYNTAX,"[SYNTAX]: /report [PlayerID] [Reason]"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_ERROR,"[ERROR]: Invalid player ID"); else { GetPlayerName(id, name,sizeof(name)); GetPlayerName(playerid, sendername, sizeof(sendername)); sendername[strfind(sendername,"_")] = ' '; format(string, sizeof(string), "[ID:%d] %s has reported %s: %s.", playerid, sendername, name, reason); ABroadCast(COLOR_YELLOW,string,1); format(string, sizeof(string), "[INFO]: Use /markfalse [ID] or /acceptreport [ID]"); ABroadCast(COLOR_YELLOW,string,1); format(string, sizeof(string), "[INFO]: Your report was just send to the online admins, please wait for a reply"); SendClientMessage(playerid,GREEN,string); PlayerNeedsHelp[playerid] = 1; return 1; } }