Changename Problem
#5

In case frename returns 0, it will not create a new file, write from the old file to new and delete the old.

You can return an error if that happens:
pawn Код:
format(name1, sizeof(name1), PLAYERS, PlayerName(playerid));
format(name2, sizeof(name2), PLAYERS, inputtext);
if (!frename(name1, name2)) return SendClientMessage(playerid, -1, "Could not be changed. Please try again later.");
SetPlayerName(playerid,inputtext);
Reply


Messages In This Thread
Changename Problem - by kalanerik99 - 19.05.2015, 17:06
Re: Changename Problem - by azzerking - 19.05.2015, 18:09
Re: Changename Problem - by kalanerik99 - 19.05.2015, 18:45
Re: Changename Problem - by azzerking - 19.05.2015, 18:51
Re: Changename Problem - by Konstantinos - 19.05.2015, 19:01
Re: Changename Problem - by kalanerik99 - 19.05.2015, 20:24
Re: Changename Problem - by kalanerik99 - 20.05.2015, 13:44
Re: Changename Problem - by kalanerik99 - 21.05.2015, 08:33
Re: Changename Problem - by Konstantinos - 21.05.2015, 09:56
Re: Changename Problem - by kyriakos587 - 21.05.2015, 11:53

Forum Jump:


Users browsing this thread: 1 Guest(s)