Posts: 521
Threads: 10
Joined: Jun 2012
Reputation:
0
Hello!
I'm using BlueG's MySQL plugin and I want to save all of my game data in OnGameModeExit. The problem is that the gamemode exits before all data is saved. Any ideas on how I can fix this?
Posts: 1,251
Threads: 2
Joined: Oct 2012
Reputation:
0
I might be wrong but i don't think you can save data on OnGameModeExit.. if you have a command that restarts the server you can do a timer and save the data and after that timer finished restart it ..You can also do a 5-10 minute saving stats timer..
Posts: 727
Threads: 79
Joined: Mar 2012
Reputation:
0
If you use GMX or EXIT OnGameModeExit always get called, when your server crashes it perhaps doesn't.
So you should take a look at your code, perhaps something is wrong there, also take a look in your mysql_log.txt if there get any query called on ongamemodeexit, to enable mysql_log.txt put mysql_debug(1); in your ongamemodeinit.
Posts: 727
Threads: 79
Joined: Mar 2012
Reputation:
0
Ow well, is your database hosted at the same spot as your server is hosted? If this is not, then it can be true that it is to slow, well yea then you should us a timer or something.