SA-MP Forums Archive
/reports command - rep for help - 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: /reports command - rep for help (/showthread.php?tid=537021)



/reports command - rep for help - MrCallum - 13.09.2014

Delete please i fixed it!


Re: /reports command - rep for help - Sparke - 13.09.2014

Which line is the error on?


Re: /reports command - rep for help - TheSimpleGuy - 13.09.2014

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



Re: /reports command - rep for help - MrCallum - 13.09.2014

I put // line 502

it is {

line 502 is apparently causing this!