Quote:
Originally Posted by exora
I had the same issue long time ago and did this;
pawn Код:
new oldFile[ MAX_PLAYER_NAME +9 ], newFile[ MAX_PLAYER_NAME +9 ]; format(oldFile, sizeof(oldFile), "%s.dudb.sav", udb_encode(pName(id))); format(newFile, sizeof(newFile), "%s.dudb.sav", udb_encode(tmp)); frename(oldFile, newFile); SetPlayerName(id, tmp);
|
Well, it works yes but the problem is that the old userfile isn't deleted. I would rather prefer having the RenameUser to work so does anyone have any solutions?