Posts: 724
Threads: 41
Joined: May 2013
Reputation:
0
Good afternoon, I would ask to be sent the statement 'exit' in the console before closing the samp server. For When You kill the process by pressing the 'x' it does WHAT is in OnGameModeExit callback.
Several times my server did not save the data correctly due to this failure: /.
Thank you for your attention.
Posts: 2,137
Threads: 37
Joined: Oct 2012
Reputation:
0
This is your problem with scripting not kalcor's problem!
Be more specific and don't blame other people.
I believe you did something wrong with save system l.
Posts: 230
Threads: 9
Joined: Dec 2011
Reputation:
0
Save it right away after you update it then.
Posts: 2,137
Threads: 37
Joined: Oct 2012
Reputation:
0
Why you need this feature when you can /q without missing files/coding.
Posts: 6,242
Threads: 8
Joined: Jun 2008
Power cuts would do the same regardless of you closing of the window, as the problem there is that the power went out.
Don't close the window, ALWAYS use exit, as you're not closing the "server" you're closing the window containing the server process.
Both of these, will result in unclean shutdowns.
If you have a UPS that needs to process the shutdown, there are ways of doing that.
Posts: 1,733
Threads: 20
Joined: Nov 2010
Reputation:
0
Don't click the "x" button to close any DOS-window.
Highlight the server's console and press CTRL + C to shutdown the server.
And save your data whenever it changes, not just every 15mins or so, or only upon player disconnect.
Whenever a player earns money, save.
Earn scorepoints, save.
Finish a mission, save.
Always save when something changes.
And when doing it properly, you won't get lag.
This prevents dataloss at any time (sudden power outage, server crashes, ...).