SA-MP Forums Archive
Whats better for storing data? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Whats better for storing data? (/showthread.php?tid=246571)



Whats better for storing data? - Desertsoulz - 04.04.2011

Whats better for saving player stats?
Y_ini, DJson, MySQL, or other _______?


Re: Whats better for storing data? - Sergei - 04.04.2011

Depends on your needs. I prefer MySQL tho'.


Re: Whats better for storing data? - Desertsoulz - 04.04.2011

So the three mentioned have pros and cons on what they can do and certain ones do certain tasks better than the other?

So I should use all three?


Re: Whats better for storing data? - SchurmanCQC - 04.04.2011

I recommend y_ini, as I've used it in the past and its an extremely simple system.

Although MySQL is more hard to understand, its also better like ****** said, for storing frequently-used data.


Re: Whats better for storing data? - int3s0 - 04.04.2011

I suggest you using MySQL.

But if you don't want to learn it then use y_ini.


Re: Whats better for storing data? - Desertsoulz - 04.04.2011

Send me to the nearest MySQL tutorial.


Re: Whats better for storing data? - vital2k - 04.04.2011

Quote:
Originally Posted by Desertsoulz
Посмотреть сообщение
So the three mentioned have pros and cons on what they can do and certain ones do certain tasks better than the other?

So I should use all three?
There will be certain aspects of your script which may be sped up by using a different storing method. Combining the use of the different methods for areas which they are best suited will be your best bet.


Re: Whats better for storing data? - Markx - 04.04.2011

I still use Dini. Why?

Its very easy and what i need, its not to fast but its ok.


Re: Whats better for storing data? - Mike Garber - 04.04.2011

Quote:
Originally Posted by Markx
Посмотреть сообщение
I still use Dini. Why?

Its very easy and what i need, its not to fast but its ok.
I use MX_Ini because none of the others i tested simply wouldn't work even if i tried the creators example xD
Don't know why, but I use It and It's simple.

pawn Код:
new file = ini_openFile("file.whatever");
ini_setFloat(file,"Set",Float);
ini_setString(file,"String","Set");
ini_setInteger(file,"Integer",100);

ini_getFloat(file,"Get",float);
ini_getString(file,"String",Get,32);
ini_getInteger(file,"Integer",get);
ini_closeFile(file);
As simple as that, and is much much faster then dini.
No troubles.


Re: Whats better for storing data? - Desertsoulz - 05.04.2011

I may just do DJson, since I already know it.
DJson is just Dini on steriods