SA-MP Forums Archive
fremove problems - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: fremove problems (/showthread.php?tid=527311)



fremove problems - Xenforox - 22.07.2014

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
pawn Код:
"/Users/%s.ini"
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);