SA-MP Forums Archive
:( Report command problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: :( Report command problem (/showthread.php?tid=346162)



:( Report command problem - Audi_Quattrix - 27.05.2012

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;
}