Lock a report.
#1

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.

PHP код:
dcmd_fermereport(playeridparams[])
{
    
#pragma unused params
    
new string[96];
    if (
GetPVarInt(playerid"ReportID") != 0)
    {
        new 
reportid GetPVarInt(playerid"ReportID");
        new 
reporter PlayerThatReported[playerid];
        
SendClientMessage(reporterCOLOR_YELLOW"Un Administrateur a fermй votre report.");
        
format(stringsizeof(string), "Vous avez fermй le report de #%d."reportid);
        
SendClientMessage(playeridCOLOR_YELLOWstring);
        
AcceptingAdminID[reporter] = -1;
        
PlayerThatReported[playerid] = -1;
        
strmid(ReportInfo[reportid][rReporter], ""0strlen(""), 255);
        
strmid(ReportInfo[reportid][rReportString], ""0strlen(""), 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(playeridCOLOR_GREY"{B22222}[ERREUR]: {FFFFFF}You never accepted a report."); //Here
    
return 1;

Hope for a solution.
Reply


Messages In This Thread
Lock a report. - by KillerDVX - 25.12.2015, 23:24
Re: Lock a report. - by JaKe Elite - 25.12.2015, 23:31
Re: Lock a report. - by KillerDVX - 25.12.2015, 23:34

Forum Jump:


Users browsing this thread: 1 Guest(s)