Setname with y_ini
#1

How can i edit the file name input by the player on /SetName. Im Using y_ini to save ini files of the user's.

Any idea or suggestions?
Reply
#2

Just delete the old file, make a new file with the new name. When the player leaves/disconnects, it should just save the data to the new file according to the players new name.
Reply
#3

Quote:
Originally Posted by Jack_Leslie
Посмотреть сообщение
Just delete the old file, make a new file with the new name. When the player leaves/disconnects, it should just save the data to the new file according to the players new name.
Nah i dont want to do that. I want to edit the file name not delete the old and create a new one.
Why?
1. This way i can save their old statistics under the new ini file.
2. I dont need to refund their stats. Just need to /setname them!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)