SA-MP Forums Archive
[Bug] OnGameModeExit - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Bug] OnGameModeExit (/showthread.php?tid=199071)



[Bug] OnGameModeExit - scottyishere - 14.12.2010

Hello.

I might find this pretty important because OnGameModeExit is not called for me if I /rcon gmx or exit or just close the console box.
I would need OnGameModeExit if there is a server bug, restart or anything to save all the stats before it shuts down.

Is it just me or everyone is experiencing this?


Re: [Bug] OnGameModeExit - mmrk - 14.12.2010

Read this: http://forum.sa-mp.com/showpost.php?...&postcount=263

Should help you.


Re: [Bug] OnGameModeExit - scottyishere - 14.12.2010

Quote:
Originally Posted by ******
Посмотреть сообщение
There are no players connected when OnGameModeExit is called - OnPlayerDisconnect is called first (you can't use foreach there either though - or you can but it won't get the just disconnected player).
That isn't really true... OnPlayerDisconnect is not called when server is shutting down.