Report System HELP
#2

You are not making a check when executing the command to make sure the player has a report pending or w.e


pawn Код:
CMD:ar(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 2)
    {
        new id, string[126];
        if(sscanf(params, "u", id))
            return SendClientMessage(playerid, -1, "Syntax: /ar [player id]");
if(somepvarthatchecks if the player has sent a report ectera == 1)
{


        DeletePVar(id, "ReportPending");
        DeletePVar(id, "ReportText");
        DeletePVar(id, "ReportTime");

        format(string, sizeof(string), "%s has accepted the report from %s (ID %d)", GetName(playerid), GetName(id), id);
        SendToAdmins(0xFFA200FF, string);

        format(string, sizeof(string), "%s has accepted your report. Please wait for the the admin to resolve the issue.", GetName(playerid));
        SendClientMessage(id, COLOR_YELLOW, string);
    }
    return 1;
else
{
SCM(playerid, green, "this player dosetn ahve a report");
}

}
I hope you understand what I mean.
Reply


Messages In This Thread
Report System HELP - by TranquiliZed - 14.07.2013, 20:08
Re: Report System HELP - by lean1337 - 14.07.2013, 20:20
Re: Report System HELP - by TranquiliZed - 14.07.2013, 21:43
Re: Report System HELP - by TranquiliZed - 15.07.2013, 02:12
Re: Report System HELP - by TranquiliZed - 16.07.2013, 15:05
Re: Report System HELP - by Hazko - 16.07.2013, 15:25

Forum Jump:


Users browsing this thread: 2 Guest(s)