10.07.2009, 13:29
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:
This is just a REALLY rough idea, but would that work?
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;
}