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.
This is the codes! maybe it can help you.
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);