22.06.2015, 20:43
Try this :
PHP код:
CMD:reports(playerid,params[])
{
#pragma unused params
if(adlvl[playerid] >= 1) {
new ReportCount;
for(new i; i < MAX_REPORTS; i++) if(strcmp(Reports[i], "<none>", true)) {
ReportCount =1;
SendClientMessage(playerid, COLOR_WHITE, Reports[i]);
}
if(ReportCount == 0)
SendClientMessage(playerid, COLOR_WHITE, "There have been no reports");
}
else
SendClientMessage(playerid, COLOR_RED, "ERROR: You need to be level 1/Help moderator to use this command");
return 1;
}