01.10.2014, 14:51
Quote:
Well, you create it again, so why is it wrong that it still exists?
If this is a rename script, you should do "fcreate" with the new name (text variable), so pawn Код:
pawn Код:
|
you want to create a new file, but you create exactly the same file again (same name)
you should use
pawn Код:
format(filestring, sizeof(filestring), "Users/%s.ini", GetPlayerRName(target));
new File:Test = fopen(filestring);
fclose(Test);
fremove(filestring);
SetPlayerName(target, text);
format(filestring, sizeof(filestring), "User/%s.ini", text); //NEW LINE - Reformat filestring to make it point to the new location
fcreate(filestring);