SA-MP Forums Archive
ongamemodeexit on linux - 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)
+--- Thread: ongamemodeexit on linux (/showthread.php?tid=317253)



ongamemodeexit on linux - lorigio - 10.02.2012

Why when i shutdown server on linux ongamemodeexit doesn't execute?

I wanna save all player data when i close server.


AW: ongamemodeexit on linux - Nero_3D - 10.02.2012

There are only two valid ways to shutdown your server

1. Type the command exit in the console
2. Call the native function GameModeExit

If you did one of these I dont know the problem :S


Re: ongamemodeexit on linux - lorigio - 10.02.2012

i trayed exit but it doesn't save anything


Re: ongamemodeexit on linux - MP2 - 10.02.2012

You can't execute much code in OnGameModeInit iirc.


AW: ongamemodeexit on linux - Nero_3D - 11.02.2012

Just put in the first line of OnGameModeExit an print expression and check if it gets called