01.06.2012, 13:30
Hello,
I have a little problem here with the code /reports.
Here's my code.
Whenever someone does /reports it spams something like ' aceeed: Littlehelper '
Help will be appreciated.
Thanks.
I have a little problem here with the code /reports.
Here's my code.
pawn Код:
// New's
new reportcount = 0;
new reports[5][50];
new reportstring[100];
new reportstring1[100];
new reportstring2[100];
new reportstring3[100];
new reportstring4[100];
// Command
CMD:reports(playerid, params[])
{
if(PInfo[playerid][Level] < 3) return SendClientMessage(playerid, -1, ""COL_RED"[ERROR]:"COL_WHITE": You Are Not Authorized To Use This Command!");
if(!strlen(reports[0])) return SendClientMessage(playerid, -1, ""COL_RED"[ERROR]:"COL_WHITE": There Have Been 0 Player Reports So Far!");
for(new s; s < 5; s++)
{
if(strlen(reports[s]) != 0)
{
format(reportstring, sizeof(reportstring), "REPORT: %s", reports[s][0]);
SendClientMessage(playerid, -1, reportstring);
format(reportstring1, sizeof(reportstring1), "REPORT: %s", reports[s][1]);
SendClientMessage(playerid, -1, reportstring1);
format(reportstring2, sizeof(reportstring2), "REPORT: %s", reports[s][2]);
SendClientMessage(playerid, -1, reportstring2);
format(reportstring3, sizeof(reportstring3), "REPORT: %s", reports[s][3]);
SendClientMessage(playerid, -1, reportstring3);
format(reportstring4, sizeof(reportstring4), "REPORT: %s", reports[s][4]);
SendClientMessage(playerid, -1, reportstring4);
}
}
return 1;
}
Help will be appreciated.
Thanks.

