:( Report command problem
#1

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


Forum Jump:


Users browsing this thread: 1 Guest(s)