27.05.2012, 16:00
When i type Example: /report 0 test I get Message "Player [Playername] reported player [Playername] for:" i DONT See reason
pawn Код:
CMD:report(playerid, params[])
{
new string[275];
new giveplayerid, reason[200];
if(strlen(params) > 202) return SendClientMessage(playerid, COLOR_DRED, "SYNTAX: /report [playerid][reason<200char>]");
if(sscanf(params, "us[200]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR_DRED, "SYNTAX: /report [playerid][reason<200char>]");
format(string,sizeof(string)," Player %s Reported Player %s for : %s ",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason); //Doesnt show reason when report
SendStaffMessage(COLOR_DRED, string);
SendClientMessage(playerid,COLOR_GGREEN,"Your report has been sent to Online admins!");
return 1;
}