23.04.2015, 01:35
(
Последний раз редактировалось Infamous; 23.04.2015 в 14:30.
Причина: The issue has been solved.
)
Hi there I have an issue where the server is crashing whilst unloading a filterscript and loading another.
In the main Gamemode;
The server then crashes for no apparent reason, here is the crash detect log;
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 код:
forward ExitMission(); // Unloads the current filterscript.
public ExitMission()
{
CallRemoteFunction("UnloadMission", "s", "mission84");
}
PHP код:
forward UnloadMission(params[]);
public UnloadMission(params[])
{
foreach(new i : Player)
{
HideSpawnLogo(i);
SetTimerEx("SendPlayerToWelcomeScreen", 1, false, "d", i);
}
new string[30];
format(string, sizeof string, "unloadfs %s", params);
SendRconCommand(string);
SendRconCommand("loadfs lobby");
MissionLoaded = false;
for(new i = 0; i < 6; i++)
{
SendDeathMessage(202, 202, 202);
}
return 1;
}
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] [debug] Server crashed due to an unknown error
[02:23:44] [debug] Native backtrace:
[02:23:44] [debug] #0 00480452 in ?? () from samp-server.exe
[02:23:44] [debug] #1 0048ceca in ?? () from samp-server.exe
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] [debug] Run time error 7: "Stack underflow"
[02:46:46] [debug] Stack pointer (STK) is 0x4D8BC, stack top (STP) is 0x7670
[02:46:46] [debug] AMX backtrace:
[02:46:46] [debug] #0 00000000 in public Itter_OnPlayerDisconnect ()
[02:46:46] [debug] Server crashed due to an unknown error
[02:46:46] [debug] Native backtrace:
[02:46:46] [debug] #0 00480452 in ?? () from samp-server.exe
[02:46:46] [debug] #1 0048ceca in ?? () from samp-server.exe