Posts: 5
Threads: 3
Joined: Dec 2017
Reputation:
0
I just started coding and making small filescripts in PAWNO, and I'm looking forward with a friend of mine on starting a RP gamemode from scratch, so it would very helpful if we knew how to store users data such as, money, level, what job he/she has, etc, before we move any forward.
We just created a trucker job and we are realizing how important saving data is, in order to proceed with the server, I would like to see a tutorial on how to properly store data, maybe with dialogs or something Y_INI or something (Even though I don't know anything about it) but MYSQL seems too hard, so we wanted to start with something simple, since we are newbies.
Thank you!
Posts: 6,242
Threads: 8
Joined: Jun 2008
https://sampforum.blast.hk/showthread.php?tid=648552
I'm just going to say, you need to learn to script before trying to make a scratch-made RP mode...
Posts: 1,506
Threads: 13
Joined: Jun 2015
If MySQL seems hard, go for SQLite. Using any other saving system is like a very big mistake if you're making a RP server.
Posts: 279
Threads: 10
Joined: Apr 2015
Reputation:
0
To be precise Every , and I mean all systems is possible to save its just by preference and data manipulation. You can use Y_ini, if you can say that your data manipulation and analysis is top notch since with that way you can manipulate almost the same as the elite MySQL and SQLite. With y_php now fully fixed and functional you can also connect y_ini to your website if you have in the near future using both as a combo.
If you wish to learn MySQL but is scared by the monster you have just seen then SQLite would teach you the basics before diving deep into the trenches of Tartarus.
Just a tip though, it is by preference of which you are comfortable coding with. You don't need to force yourself to learn something that you can't learn fast, you also should not work basic coding in MySQL, I've literally said this a couple of times. Basic MySQL coding would do more harm than good to your script in the long run.
EDIT:
The PHP part on SA-MP or let me say the functions to be used for MySQL is easily, but creating the queries and creating a less redundant and manipulated data is much harder than it looks. I am not scaring you or anything its just facts and everyone here that uses MySQL, including me, have delve into the mouth of Tartarus just to learn MySQL, in the long run it will be a big help for you on almost everything database related, it's just that MySQL is misunderstood by many that they can just use it in basic form, and I hate to break it to you but the basic form in MySQL is more fucked up than using the other saving system
Posts: 180
Threads: 22
Joined: Dec 2015
Reputation:
0
Use Dini2 by Gammix, The syntax is very easy.