Save server state
#1

Hi all,
I'm looking for a script that saves the state of the current session to a file when the server shuts down, and when it starts again, the file containing the session data is loaded again and the session becomes the same it was when it shut down.
Is this possible?

Sorry for my bad English.
Superthijs
Reply
#2

Sure hope you understand it, cuz it's a bit long.
Reply
#3

Hmm, you can use Dini, DJson, Y_INI, Fini, SII or even MySQL if you are experienced with that. You can also use the file saving that comes with SA:MP. Here, have a look at these tutorials and links:
_____________________________________________
https://sampforum.blast.hk/showthread.php?tid=273088
https://sampforum.blast.hk/showthread.php?tid=267808
https://sampforum.blast.hk/showthread.php?tid=174575
_____________________________________________
fopen
fread
fwrite
fclose
fremove
_____________________________________________
Also you are only allowed to bump your topic every 48 hours. You bumped within 3 minutes lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)