/reports
#1

My reports command looks like this:

pawn Код:
new Report[128];
CMD:reports(playerid, params[])
{
    if(GetPVarInt(playerid, "adminlevel") < 1) return SendClientMessage(playerid, RED, "You are not an administrator.");
    {
        SendClientMessage(playerid, YELLOW, "|__________Open Reports__________|");
        foreach(Player, i)
        {
            if(IsPlayerConnected(i))
            {
                if(GetPVarInt(i, "reported") == 1)
                {
                    new string[128];
                    format(string, sizeof(string), "REPORT: %s [%i]: %s", ReturnPlayerName(i), i, Report);
                    SendClientMessage(playerid, ORANGE, string);
                }
            }
        }
    }
    return 1;
}
It only shows the most recent report though, how do I make it so that each player gets their own Report string?
Reply


Messages In This Thread
/reports - by [RVRP]Tyler - 07.08.2010, 03:09
Re: /reports - by Calgon - 07.08.2010, 03:10
Re: /reports - by [RVRP]Tyler - 07.08.2010, 03:35
Re: /reports - by Calgon - 07.08.2010, 06:07

Forum Jump:


Users browsing this thread: 1 Guest(s)