Problem with .ini files (y_ini)
#1

Well... I got some mess with the .ini files of the accounts of my server, and I wonder if there's any way to load the data from all the .ini files and re-write them. The prolem is that as I add a new variable to the "SaveAccount" function, when it saves the .ini it doesn't overwrites the old variables and adds the new variable to the .ini, but creates all the variables again and writes them in the bottom of the file.

I know that I can do something like "OnPlayerLogin>LoadUserData>fremove("user.ini")>Sa veAccount", but it's kinda dangerous in case of server crash, so I plan to do it on a server maintenance, when there are no users and no data can be lost.
I am looking for something like "new INI:File = INI_Open(accounts/"All")"

Please help me Y_Y.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)