22.07.2014, 03:46
I've been looking around for a way to delete a file and i've found that everybody give fremove as a solution, i tried it but it's not really working for me for a reason.
The path of the files is
This is the codes! maybe it can help you.
The path of the files is
pawn Код:
"/Users/%s.ini"
pawn Код:
format(NameStr, sizeof(NameStr), "/Users/%s.ini", NewName);
if(fexist(NameStr))
{
SendClientMessage(playerid, WHITE, "That account name is already registered.");
}
else
{
format(string, sizeof(string),"%s", NewName);
strcpy(PlayerInfo[id][NormalName],string, MAX_PLAYER_NAME);
fremove(NameStr);