Is it possible to save an array using y_ini? - 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: Is it possible to save an array using y_ini? (
/showthread.php?tid=561596)
Is it possible to save an array using y_ini? -
Aerotactics - 03.02.2015
As the question asks, could I save an array to a file, such as:
Quote:
VehicleComponent[5] = {1010, 1011, 1012,0,0}
|
For example.
Re: Is it possible to save an array using y_ini? -
Dignity - 03.02.2015
You save it the same way as you'd save any other variable.
Either way, you should probably consider using MySQL as it's generally more flexible.
Re: Is it possible to save an array using y_ini? -
Aerotactics - 07.02.2015
Quote:
Originally Posted by Satori_Komeiji
You save it the same way as you'd save any other variable.
Either way, you should probably consider using MySQL as it's generally more flexible.
|
I'm not sure it works that way. y_ini saves files as "Int," "Bool," "String," etc. but there no "INI_WriteArray," which is why I brought it up.