SA-MP Forums Archive
Deleting a file with Y_INI? - 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: Deleting a file with Y_INI? (/showthread.php?tid=304309)



Deleting a file with Y_INI? - Scarred - 17.12.2011

How would I go about doing it?


Re: Deleting a file with Y_INI? - Calgon - 17.12.2011

As you would with any other file, use fremove(). fremove() sometimes fails though, so you're better off using a plugin with a file remove function, i.e. JaTochNietDan's FileManager plugin.


Re: Deleting a file with Y_INI? - Scarred - 17.12.2011

Quote:
Originally Posted by Calgon
Посмотреть сообщение
As you would with any other file, use fremove(). fremove() sometimes fails though, so you're better off using a plugin with a file remove function, i.e. JaTochNietDan's FileManager plugin.
Oh, duh. What's the failure rate on fremove, though? Is it a higher or lower rate of success than failure?


Re: Deleting a file with Y_INI? - Calgon - 17.12.2011

From experience, it's a pretty high rate.


Re: Deleting a file with Y_INI? - Scenario - 17.12.2011

Quote:
Originally Posted by Calgon
Посмотреть сообщение
JaTochNietDan's FileManager plugin.
That plugin works great for me, I'd recommend it too!