25.12.2015, 23:24
Hello guys.
So my problem is that i made a report system, and it contains a command "/fermereport" which we can close the report after the been resoluted.
But the main problem, is that I get an error message, says that "I never accepted a report" which I did.
Hope for a solution.
So my problem is that i made a report system, and it contains a command "/fermereport" which we can close the report after the been resoluted.
But the main problem, is that I get an error message, says that "I never accepted a report" which I did.
PHP код:
dcmd_fermereport(playerid, params[])
{
#pragma unused params
new string[96];
if (GetPVarInt(playerid, "ReportID") != 0)
{
new reportid = GetPVarInt(playerid, "ReportID");
new reporter = PlayerThatReported[playerid];
SendClientMessage(reporter, COLOR_YELLOW, "Un Administrateur a fermй votre report.");
format(string, sizeof(string), "Vous avez fermй le report de #%d.", reportid);
SendClientMessage(playerid, COLOR_YELLOW, string);
AcceptingAdminID[reporter] = -1;
PlayerThatReported[playerid] = -1;
strmid(ReportInfo[reportid][rReporter], "", 0, strlen(""), 255);
strmid(ReportInfo[reportid][rReportString], "", 0, strlen(""), 255);
ReportInfo[reportid][rReportAnswered] = 0;
ReportIDTaken[reportid] = 0;
ReportInfo[reportid][rListitem][ReportInfo[reportid][rListitem]] = -1;
ReportCount -= 1;
ShuffleListitems();
DeletePVar(playerid, "ReportID");
return 1;
}
else SendClientMessage(playerid, COLOR_GREY, "{B22222}[ERREUR]: {FFFFFF}You never accepted a report."); //Here
return 1;
}