Setname with 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: Setname with y_ini (
/showthread.php?tid=316463)
Setname with y_ini -
Ballu Miaa - 07.02.2012
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?
Re: Setname with y_ini -
Jack_Leslie - 07.02.2012
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.
Re: Setname with y_ini -
Ballu Miaa - 07.02.2012
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!