Random Server Crash
#1

Hi there I have an issue where the server is crashing whilst unloading a filterscript and loading another.

PHP код:
forward ExitMission(); // Unloads the current filterscript.
public ExitMission()
{
    
CallRemoteFunction("UnloadMission""s""mission84");

In the main Gamemode;
PHP код:
forward UnloadMission(params[]);
public 
UnloadMission(params[])
{
    foreach(new 
Player)
    {
        
HideSpawnLogo(i);
        
SetTimerEx("SendPlayerToWelcomeScreen"1false"d"i);
    }
    new 
string[30];
    
format(stringsizeof string"unloadfs %s"params);
    
SendRconCommand(string);
    
    
SendRconCommand("loadfs lobby");
    
MissionLoaded false;
    for(new 
06i++)
    {
        
SendDeathMessage(202202202);
    }
    return 
1;

The server then crashes for no apparent reason, here is the crash detect log;
PHP код:
[02:23:43]   Filterscript 'mission84.amx' unloaded.
[
02:23:43
[
02:23:43] --------------------------
[
02:23:43]  Lobby by Infamous [2015
[
02:23:43] --------------------------
[
02:23:43
[
02:23:43]   Filterscript 'lobby.amx' loaded.
[
02:23:43] [debugServer crashed due to an unknown error
[02:23:44] [debugNative backtrace:
[
02:23:44] [debug#0 00480452 in ?? () from samp-server.exe
[02:23:44] [debug#1 0048ceca in ?? () from samp-server.exe 
If anyone can see a problem or possibly has any ideas as to the cause of this problem then please let me know.

EDIT: Running through the crash again the crash detect plugin found a little bit more info;
PHP код:
[02:46:46]   Filterscript 'mission84.amx' unloaded.
[
02:46:46
[
02:46:46] --------------------------
[
02:46:46]  Lobby by Infamous [2015
[
02:46:46] --------------------------
[
02:46:46
[
02:46:46]   Filterscript 'lobby.amx' loaded.
[
02:46:46] [debugRun time error 7"Stack underflow"
[02:46:46] [debug]  Stack pointer (STKis 0x4D8BCstack top (STPis 0x7670
[02:46:46] [debugAMX backtrace:
[
02:46:46] [debug#0 00000000 in public Itter_OnPlayerDisconnect ()
[02:46:46] [debugServer crashed due to an unknown error
[02:46:46] [debugNative backtrace:
[
02:46:46] [debug#0 00480452 in ?? () from samp-server.exe
[02:46:46] [debug#1 0048ceca in ?? () from samp-server.exe 
Reply


Messages In This Thread
Random Server Crash [Solved] - by Infamous - 23.04.2015, 01:35
Re: Random Server Crash - by Crayder - 23.04.2015, 02:12
Re: Random Server Crash - by Infamous - 23.04.2015, 02:27
Re: Random Server Crash - by Crayder - 23.04.2015, 02:45
Re: Random Server Crash - by Kar - 23.04.2015, 02:55
Re: Random Server Crash - by Infamous - 23.04.2015, 03:01
Re: Random Server Crash - by Kar - 23.04.2015, 03:08
Re: Random Server Crash - by Infamous - 23.04.2015, 03:11
Re: Random Server Crash - by Crayder - 23.04.2015, 03:52
Re: Random Server Crash - by Infamous - 23.04.2015, 04:10

Forum Jump:


Users browsing this thread: 1 Guest(s)