Y_INI file naming
#1

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)