Save All server
#1

How to save all server e.g. statistics: score, money when the server itself turns off or restarts? For OnGameModeExit and OnPlayerDisconnect.
Reply
#2

you have to create a saving systems, which will be saved in data storage (such as MySQL, SQLite, DINI and etc)
Reply
#3

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
Reply
#4

It meant how to save the server. Eg /gmx, some timer. So as not to lose player statistics (DINI)
Reply
#5

Yeah just exactly what he said . You gotta make a dini based saving system . Use search
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)