/reports command - rep for help
#1

Delete please i fixed it!
Reply
#2

Which line is the error on?
Reply
#3

pawn Код:
CMD:reports(playerid, params[])
{
if(pInfo[playerid][pAdmin] >=1) // <-- add ( on this one
    { // line 502
        SendClientMessage(playerid, -1, "Reports:");
        for(new i;i < MAX_PLAYERS; i++)
        {
            if(GetPVarInt(i, "Reports Pending") ==1)
            {
                new string[200], reportText[126], pendingtime;
                GetPVarString(i,"Report Text", reportText, sizeof(reportText));
                pendingtime = (gettime()-GetPVarInt(i, "Report Time"))/60;
                format(string, sizeof(string), "%s | Text: %s | Pending: %d minutes", GetName(i), reportText, pendingtime);
                SendClientMessage(playerid, -1, string);
            }
        }
    }
return 1;
}
Reply
#4

I put // line 502

it is {

line 502 is apparently causing this!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)