[HELP] remove/deleting dini or y_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: [HELP] remove/deleting dini or y_ini file (
/showthread.php?tid=493257)
[HELP] remove/deleting dini or y_ini file -
Luca12 - 07.02.2014
Hello I have radar system and I was create one radar on my server and in my scriptfiles/radars/radar_0.ini is also create a file so my question is how can I delete that radar_0.ini using command /moveradar? Thanks
Re: [HELP] remove/deleting dini or y_ini file -
Luca12 - 08.02.2014
anyone?thanks
Re: [HELP] remove/deleting dini or y_ini file -
erminpr0 - 08.02.2014
Lets see if I understood you.
Код:
YCMD:moveradar(playerid, params[], help)
return fexist("/radars/radar_0.ini") ? (fremove("/radars/radar_0.ini")) : (SendClientMessage(playerid, -1, "File doesn't exist."));
Re: [HELP] remove/deleting dini or y_ini file -
Luca12 - 08.02.2014
I want delete it all radar one by command if you know what I mean
radar_0 radar_1 radar_2 so for example I have three created radars file and know I use moveradar and I want to then delete radar_2 then again use moveradar then I want delete radar_1 and finally when is radar_1 delete again I use moveradar and then I delete radar_0
Re: [HELP] remove/deleting dini or y_ini file -
erminpr0 - 08.02.2014
Код:
new Radar = 0;
while(Radar < MAX_RADARA)
{
new string[22];
format(string, sizeof string, "/radars/radar_%d.ini", Radar);
fremove(string);
++Radar;
}
Re: [HELP] remove/deleting dini or y_ini file -
Luca12 - 08.02.2014
the radar file is still in folders radars it isn't deleted
Re: [HELP] remove/deleting dini or y_ini file -
erminpr0 - 08.02.2014
How much you are sure using right path ?
Re: [HELP] remove/deleting dini or y_ini file -
Luca12 - 08.02.2014
I'm pretty sure that is everything fine