[Help] Saving
#1

Hello. Can someone help me make a system using something simple, such as dini, to make a saving system? Could you explain to me how it works also. Like I would need something that writes skins, location (x, y, z), cash, weapons to a file.

I would know I would need to do like a create file when a player joins, or if they were already in to load his/her file and to write to it when they log off, and then do it again when they log in. I just don't know where to start.
Reply
#2

Recommending sqlite there is plenty of tutorials.

https://sampforum.blast.hk/showthread.php?tid=262417
https://sampforum.blast.hk/showthread.php?tid=278188
Reply
#3

Personally I would recommend reading the official documentation on the system of your choice and then moving on to tutorials to see how all of the unique functions are used together to create a system like the one you desire.

If you don't know where to start, use ******. I don't mean that in a condescending tone, either. I actually use ****** all the time. If you want to become an efficient scripter, you need to learn how to utilize your resources. Just about any and all questions have been asked multiple times (although maybe slightly different).

I would like to add one more thing on the subject of saving systems. When I was new to scripting, I too sought an easy method to create a player saving system. This meant I familiarized myself greatly with systems like dini, which I later have found to be somewhat of a misstep. While at the time when I started scripting these systems were extremely popular, the SA:MP community has transitioned to an objective of efficiency and quality (for the better). Although possibly more confusing for a beginner, spend time getting to understand and love systems like SQLite and MySQL (if you intend to use any sort of web integration) or Y_INI.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)