Save variables to an external file - 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 variables to an external file (
/showthread.php?tid=585480)
Save variables to an external file -
dimashr12345 - 14.08.2015
Hey, guys!
At the moment, I am working on my own roleplay game mode. As the player plays, he would be able to get a job, earn money, buy a car, etc. I can save the job id or the amount of money as variables, but when the player logs out, their values would be annulled. I would like to make a simple system that would save these variables to an external file, and read the information from them when the player logs in, so that they could continue where they left off. Can anyone help me with this?
Thanks in advance.
Re: Save variables to an external file -
finelaq - 14.08.2015
You can use this:
https://sampforum.blast.hk/showthread.php?tid=273088
Re: Save variables to an external file -
dimashr12345 - 14.08.2015
Quote:
Originally Posted by finelaq
|
Thanks, this should work.