[REP++] Server crashed / Error log here
#1

Server suddenly crashed , what could be the problem ? Look down.


pawn Код:
[15:51:29] [debug] Server crashed while executing gm.amx
[15:51:29] [debug] AMX backtrace:
[15:51:29] [debug] #0 0030336c in GetPlayersOnServer () at D:\x.pwn:54874
[15:51:29] [debug] #1 00057398 in public PTimer (playerid=42) at D:\x.pwn:3257
[15:51:29] [debug] Native backtrace:
[15:51:29] [debug] #0 f74ade8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[15:51:29] [debug] #1 f74a6bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[15:51:29] [debug] #2 f74a7dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[15:51:29] [debug] #3 f74a8226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[15:51:29] [debug] #4 f74adadc in ?? () from plugins/crashdetect.so
[15:51:29] [debug] #5 f779b410 in ?? ()

pawn Код:
GetPlayersOnServer()
{
    new count = 0;
    foreach(new x : Player)
    {
        if(IsPlayerConnected(x))
        {
            count++;
        }
    }
    return count;
}


pawn Код:
This is how i use it....

        if(GetPlayersOnServer() >= 195)
        {
                   // script code
        }
        else
        {
                      //script code
       
        }

I rep the person who helps me!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)