25.02.2014, 19:55
I dont understand how to do this.
I need to make the command for players to report players etc and they must be assigned a report id.
For example the first report will get reportid 1, and 2nd report will get reportid 2, and 3rd report will get reportid 3.
But then say an admin finishes reportid 2, then the next report will fill the gap and will be reportid 2 etc.
I dont understand how to make the loop for that.
Could anyone help?
Thanks
Here is my report command.
I need to make the command for players to report players etc and they must be assigned a report id.
For example the first report will get reportid 1, and 2nd report will get reportid 2, and 3rd report will get reportid 3.
But then say an admin finishes reportid 2, then the next report will fill the gap and will be reportid 2 etc.
I dont understand how to make the loop for that.
Could anyone help?
Thanks
Here is my report command.
Код:
CMD:report(playerid, params[]) { /* new report[168], str[168]; if(sscanf(params, "s[168]", report)) return SendClientMessage(playerid, -1, "USAGE: /report [text]"); if(reported[playerid] == 1) return SendClientMessage(playerid, -1, "You already have an active report."); if(reports > 999) reports = 0; reports++; reported[playerid] = 1; reportid[playerid] = reports; format(reporttext[playerid], sizeof(reporttext), "%s [ID: %i] [Report ID: %i]: %s", GetName(playerid), playerid, reports, report); format(str, sizeof(str), "Report from %s [ID: %i] [Report ID: %i]: %s", GetName(playerid), playerid, reports, report); Log("/logs/reports.txt", reporttext[playerid]); SendClientMessageToAdmins(COLOR_CYAN, str, 1); */ new report[168], str[168]; if(sscanf(params, "s[168]", report)) return SendClientMessage(playerid, -1, "USAGE: /report [text]"); if(reported[playerid] == 1) return SendClientMessage(playerid, -1, "You already have an active report."); return 1; }