Posts: 103
Threads: 14
Joined: Nov 2011
Reputation:
0
i need a /changename command for admins
When i change some one"s name then his old name stats save's with new name
Please Help I Search evry where but I Cant Find Correct Command
H E L P
Posts: 103
Threads: 14
Joined: Nov 2011
Reputation:
0
HELP
Sorry For Double Post
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
You can't just demand stuff like this, you need to tell us what data system you are using (i.e. mySQL, dini, Y_INI)
Posts: 103
Threads: 14
Joined: Nov 2011
Reputation:
0
I am Using LuxAdmin System & dini
Posts: 103
Threads: 14
Joined: Nov 2011
Reputation:
0
HELp Plz
Sorry Double Post
Posts: 2,364
Threads: 135
Joined: Dec 2009
Reputation:
0
when you change someone's name and then you will need to delte his save with his old name and then just put his data from the old name save to the new neame save
Posts: 103
Threads: 14
Joined: Nov 2011
Reputation:
0
Its To long
simply can i get command for it
Posts: 1,057
Threads: 90
Joined: May 2009
Reputation:
0
This is why I prefer MYSQL. You get less trouble with stuff like this in MYSQL.
Anyway, the answer is already stated above. You'll have to do this:
Copy all data from the file from the user who wants to change the name, remove that file, then create a new file with the new name of the player, with the copied data.
Posts: 1,223
Threads: 5
Joined: Sep 2011
Reputation:
0
RenameFile(file, file2); <--- dini