Command Crash Server
#1

It crashes my server after I use /report command, idk why.. can u guys please point it out for me, what causes it??

The command :
PHP код:
CMD:report(playeridparams[])
{
    new 
string[144], targetidreason[MAX_PLAYERS], count 0;
    if(
GetPVarInt(playerid"TryToEscape") == 0) return SendClientMessage(playerid0xFF0000FF"You have to log in to use this command!");
    if(
sscanf(params"us[128]"targetidreason)) return SendClientMessage(playerid0xFF0000FF"Penggunaan: /report [playerid] [reason]");
    if(!
IsPlayerConnected(targetid)) return SendClientMessage(playerid0xFF0000FF"This player is not logged in!");
    if(
GetPVarInt(targetid"TryToEscape") == 0) return SendClientMessage(playerid, -1"This player is not logged in");
    if(
strlen(reason) < 6) return SendClientMessage(playerid, -1"Your report is too short"); //
    
format(stringsizeof(string), "%s have reported against %s reason: %s"IsPlayerName(playerid), IsPlayerName(targetid), reason);
    
SaveLogs("Reports"string);
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i) && GetPVarInt(i"TryToEscape") == && Account[i][Admin] > 0)
        {
            
count ++;
            
SendClientMessage(i0xFF0000FFstring);
            
PlayerPlaySound(playerid10570.00.00.0);
        }
    }
    
format(stringsizeof(string), "Your report is being processed by the system. Thanks for your report!"count);
    
SendClientMessage(playerid0xFF0000FFstring);
    
count 0;
    return 
1;

Reply


Messages In This Thread
Command Crash Server - by AfiqIqbal - 08.04.2018, 16:36
Re: Command Crash Server - by X337 - 08.04.2018, 17:10
Re: Command Crash Server - by AfiqIqbal - 08.04.2018, 17:13
Re: Command Crash Server - by X337 - 08.04.2018, 17:32
Re: Command Crash Server - by zookyy - 08.04.2018, 23:56
Re: Command Crash Server - by RogueDrifter - 09.04.2018, 00:06

Forum Jump:


Users browsing this thread: 1 Guest(s)