Help with command to remove file
#3

Well, I allready use Dini for my register system ect.
And i've tryed stuff myself but I couldnt get it to work even a little bit.

So I hope one of you alrleady done something like this.

I'm looking for something that loops the file searching for that ID in the first array cararray[0] < that is the ID.

Anyone got a suggestion?

EDIT:
how about something like this:

pawn Код:
public LoadVehicles()
{
    new carid;
    new File:fhandle,temp[256];
    fhandle = fopen("Cars/vehicles.cfg",io_read);
    while(fread(fhandle,temp,sizeof(temp),false))
    {
      sscanf(temp,"d", carid);
      if(removeid == carid){
           //here blabla to remove?
        }
    }
    fclose(fhandle);
    return 1;
}
This is just a REALLY rough idea, but would that work?
Reply


Messages In This Thread
Help with command to remove file - by Jameston12 - 10.07.2009, 13:19
Re: Help with command to remove file - by lavamike - 10.07.2009, 13:25
Re: Help with command to remove file - by Jameston12 - 10.07.2009, 13:29
Re: Help with command to remove file - by Jameston12 - 10.07.2009, 14:45

Forum Jump:


Users browsing this thread: 2 Guest(s)