What do you use to store player info like owned vehicles and vehicles modifications? - 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: What do you use to store player info like owned vehicles and vehicles modifications? (
/showthread.php?tid=636397)
What do you use to store player info like owned vehicles and vehicles modifications? -
EtayJ - 26.06.2017
It seems too messy to use MySQL for storing this kind of information. I was thinking that JSON, YML, XML or anything like that would be better to store this kind of information and let MySQL store only sensitive information.
So, what do you use?
And is there a good JSON/YML include that I can use for file read/write?
Re: What do you use to store player info like owned vehicles and vehicles modifications? -
Vince - 26.06.2017
Quote:
Originally Posted by EtayJ
It seems like bad practice to me to use MySQL for storing this kind of information [...] and let MySQL store only sensitive information.
|
What? Why?
Re: What do you use to store player info like owned vehicles and vehicles modifications? -
EtayJ - 26.06.2017
Quote:
Originally Posted by Vince
What? Why?
|
I rephrased it.
It just seems to messy to me. I cannot explain this but I have used JSON for a long time in Unity and desktop applications and I find the structure to be really good. Maybe it's just me because I barely use MySQL.
Re: What do you use to store player info like owned vehicles and vehicles modifications? -
Abagail - 26.06.2017
Using MySQL has plenty of advantages with this type of system:
- Database can be easily used across different platforms and applications aside from the SA-MP server itself.
- Lots of documentation and support for the language.
- Wide array of functions within queries.
- Easy to sort, locate, change and remove data.
The list goes on.