[HELP] remove/deleting dini or y_ini file
#1

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
Reply
#2

anyone?thanks
Reply
#3

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."));
Reply
#4

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
Reply
#5

Код:
new Radar = 0;
while(Radar < MAX_RADARA)
{
    new string[22];
    format(string, sizeof string, "/radars/radar_%d.ini", Radar);
    fremove(string);
    ++Radar;
}
Reply
#6

the radar file is still in folders radars it isn't deleted
Reply
#7

How much you are sure using right path ?
Reply
#8

I'm pretty sure that is everything fine
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)