SA-MP Forums Archive
remove file starting by ... - 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: remove file starting by ... (/showthread.php?tid=312473)



remove file starting by ... - ombre - 21.01.2012

Hello,

For to remove a file, I use:

format(string, sizeof(string), "Vehicles/Players/%.cfg", name);
dini_Remove(string);

I want to remove a other file:
format(string, sizeof(string), "Vehicles/Vehicles/%.%.cfg", name,nameveh);

But I don't know the "nameveh" so I need to delete the Vehicles/Vehicles/%...cfg (name)

How to remove the file cfg who start by a name?

Thanks