Save All server - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Save All server (
/showthread.php?tid=649647)
Save All server -
KamilPolska - 12.02.2018
How to save all server e.g. statistics: score, money when the server itself turns off or restarts? For OnGameModeExit and OnPlayerDisconnect.
Re: Save All server -
Mugala - 12.02.2018
you have to create a saving systems, which will be saved in data storage (such as MySQL, SQLite, DINI and etc)
Re: Save All server -
Mugala - 12.02.2018
so here is a tutorial links
MySQL -
https://sampforum.blast.hk/showthread.php?tid=627520
Dini -
https://sampforum.blast.hk/showthread.php?tid=101560
SQLite -
https://sampforum.blast.hk/showthread.php?tid=449536
Re: Save All server -
KamilPolska - 13.02.2018
It meant how to save the server. Eg /gmx, some timer. So as not to lose player statistics (DINI)
Re: Save All server -
PepsiCola23 - 13.02.2018
Yeah just exactly what he said . You gotta make a dini based saving system . Use search
Re: Save All server -
RogueDrifter - 13.02.2018
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