Posts: 328
Threads: 24
Joined: Jul 2009
Reputation:
0
When my server crashes, it does not run OnPlayerdisconnect, this means all player data are not saved.
How can i prevent this ?
Posts: 365
Threads: 4
Joined: Feb 2008
Reputation:
0
You could;
1) Fix the crashes, or;
2) Save the player data when it changes instead of when they disconnect
Posts: 6,129
Threads: 36
Joined: Jan 2009
The server doesn't have the time to store the data once a crashed has happened, the best way is to fix things when data changes OR better yet, fix the crashes. Try looking over your code and checking the following threads:
http://forum.sa-mp.com/index.php?topic=2750.0
http://forum.sa-mp.com/index.php?topic=79810.0