Y_INI file naming - 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: Y_INI file naming (
/showthread.php?tid=374612)
Y_INI file naming -
zDevon - 03.09.2012
I use Y_INI, and I have for some time. Some of the basics are really obscure to be though, like what I'm trying to do here.
Quote:
Originally Posted by ******
The simplest way is to have another file that just stores the ID of the last file saved. Every time you create a new file read the ID from that file (or read the ID when your mode starts), increment it, and write the new file.
|
I need this for saving player vehicles. The first method I tried to get the last file ID is somewhat covered here,
https://sampforum.blast.hk/showthread.php?tid=374328. What went wrong there basically is that none of my vehicles would create their own file, only overwrite the last and only file. No one seemed to be able to help me there though, so I want to try this method.
Can anyone give me a rundown of how to accomplish what ****** has described there?