Problema /finishreport
#2

PHP код:
CMD:finishreport(playeridparams[])
{
    new 
strglobal[80];
    if(
ActiveReport[playerid] == 0) return SCM(playeridCOLOR_WHITE"You're not in a report session!");
    if(
ReportDuty[playerid] == 1) { playerid ReportAdminID[playerid]; } // admin
    
if(ReportDuty[playerid] == 2) { toplayerid ReportPlayerID[toplayerid]; } // jucator
    
ActiveReport[playerid] = 0;
    
ReportDuty[playerid] = 0;
    
ActiveReport[toplayerid] = 0;
    
ReportDuty[toplayerid] = 0;
    
format(strglobalsizeof(strglobal), "* %s has stopped this report session."GetName(playerid));
    
SCM(playeridCOLOR_YELLOW2strglobal); // admin
    
SCM(toplayeridCOLOR_YELLOW2strglobal); // jucator
    
ReportPlayerID[playerid] = INVALID_PLAYER_ID;
    
ReportAdminID[playerid] = INVALID_PLAYER_ID;
    
ReportPlayerrID[toplayerid] = INVALID_PLAYER_ID;
    
ReportAdminID[toplayerid] = INVALID_PLAYER_ID;
    return 
1;

PHP код:

    ReportPlayerID
[playerid] = INVALID_PLAYER_ID;
    
ReportAdminID[playerid] = INVALID_PLAYER_ID;
    
ReportPlayerrID[toplayerid] = INVALID_PLAYER_ID;
    
ReportAdminID[toplayerid] = INVALID_PLAYER_ID
-> acestea le poti scoate, pentru ca nu ai (/finishreport [ID]).

daca te-am ajutat, +rep.

P.S.: ce gamemode folosesti?!
Reply


Messages In This Thread
Problema /finishreport - by qRazor - 29.08.2017, 06:37
Re: Problema /finishreport - by webby - 01.09.2017, 00:08

Forum Jump:


Users browsing this thread: 1 Guest(s)