Command Causing Server Crash
#1

Hey hey,

I got quite a lot of problems with my Server, one of the Commands is causing a crash:
Код:
[23:49:58] [debug] Server crashed while executing RobinMode.amx
[23:49:58] [debug] AMX backtrace:
[23:49:58] [debug] #0 00000073 in ?? () from RobinMode.amx
[23:49:58] [debug] #1 00000073 in public cmd_asay () from RobinMode.amx
[23:49:58] [debug] #2 native CallLocalFunction () from sampsvr-port_2470
[23:49:58] [debug] #3 000111dc in public KB_OnPlayerCommandText (0, 1433272) from RobinMode.amx
[23:49:58] [debug] #4 00004dd0 in public OnPlayerCommandText (0, 1433272) from RobinMode.amx
This is the Command that is causing it:

PHP код:
COMMAND:asay(playeridparams[])
{
    if(
level[playerid] == 6)
    {
        new 
pidtowhat;
        if(
sscanf(params"us"pidtowhat)) return SendClientMessage(playeridCOLOR_RED"Usage: /asay [PlayerID] [Text]");
        {
            if(!
IsPlayerConnected(pid)) return SendClientMessage(playeridCOLOR_RED"ERROR: That player is not online.");
            new 
string[180];
            
format(stringsizeof(string), "%s"towhat);
            
SendPlayerMessageToAll(pidstring);
            
printf("%s",string);
        }
    }
    else return 
0;
    return 
1;

Any ideas?
Reply


Messages In This Thread
Command Causing Server Crash - by SupperRobin6394 - 22.12.2015, 21:54
Re: Command Causing Server Crash - by saffierr - 22.12.2015, 22:05
Re: Command Causing Server Crash - by J0sh... - 22.12.2015, 22:12
Re: Command Causing Server Crash - by SupperRobin6394 - 22.12.2015, 22:22
Re: Command Causing Server Crash - by TwinkiDaBoss - 22.12.2015, 22:26
Re: Command Causing Server Crash - by SupperRobin6394 - 22.12.2015, 22:39
Re: Command Causing Server Crash - by TwinkiDaBoss - 22.12.2015, 22:43
Re: Command Causing Server Crash - by SupperRobin6394 - 22.12.2015, 22:51
Re: Command Causing Server Crash - by TwinkiDaBoss - 22.12.2015, 23:00

Forum Jump:


Users browsing this thread: 1 Guest(s)