Save variables to an external file
#1

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.
Reply
#2

You can use this:
https://sampforum.blast.hk/showthread.php?tid=273088
Reply
#3

Quote:
Originally Posted by finelaq
Посмотреть сообщение
Thanks, this should work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)