12.08.2010, 14:53
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);