Posts: 22
Threads: 6
Joined: Jan 2010
Reputation:
0
Why when i shutdown server on linux ongamemodeexit doesn't execute?
I wanna save all player data when i close server.
Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
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
Posts: 22
Threads: 6
Joined: Jan 2010
Reputation:
0
i trayed exit but it doesn't save anything
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
You can't execute much code in OnGameModeInit iirc.
Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
Just put in the first line of OnGameModeExit an print expression and check if it gets called