SA-MP Forums Archive
How to delete a INI file? - 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: How to delete a INI file? (/showthread.php?tid=618357)



How to delete a INI file? - Eoussama - 04.10.2016

As te title says,
I've ******d that, and I found this function fremove()
I have no idea how to use it,
please guide me into making this right,
or if you know any other ideas about resetting INI data just tell me please

regards, Oussama


Re: How to delete a INI file? - Kaliber - 04.10.2016

Give us an example name of your ini files

PHP код:
//For example if you have an test.ini file in your scriptfiles:
fremove("test.ini"); //Delete this file in your scriptfiles
//If its in an folder:
fremove("Accounts/test.ini"); //Deletes this file in the folder 



Re: How to delete a INI file? - Eoussama - 04.10.2016

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Give us an example name of your ini files

PHP код:
//For example if you have an test.ini file in your scriptfiles:
fremove("test.ini"); //Delete this file in your scriptfiles
//If its in an folder:
fremove("Accounts/test.ini"); //Deletes this file in the folder 
problem solved,
I just had to reset all data line by line,
but thanks anyway