Posts: 284
Threads: 78
Joined: May 2016
Reputation:
0
How to save all server e.g. statistics: score, money when the server itself turns off or restarts? For OnGameModeExit and OnPlayerDisconnect.
Posts: 1,176
Threads: 2
Joined: Nov 2012
Reputation:
0
you have to create a saving systems, which will be saved in data storage (such as MySQL, SQLite, DINI and etc)
Posts: 284
Threads: 78
Joined: May 2016
Reputation:
0
It meant how to save the server. Eg /gmx, some timer. So as not to lose player statistics (DINI)
Posts: 728
Threads: 109
Joined: May 2015
Reputation:
0
Yeah just exactly what he said . You gotta make a dini based saving system . Use search
Posts: 1,192
Threads: 10
Joined: Dec 2017
Reputation:
0
And try to save stats the moment they change, for EX: hooking GivePlayerMonry to update stats the moment a transaction happens in case of server crash/restart