10.07.2009, 14:45
He sorry to double post but ive gotten a bit further now.
Now I just need to delete a line, i found a few to find the line but not the number.
I hope you can help me now.
Now I just need to delete a line, i found a few to find the line but not the number.
pawn Код:
public RemoveVehicle(id)
{
new carid, vmodel, Float:x,Float:y,Float:z,Float:a,color1,color2;
new File:fhandle,temp[256];
fhandle = fopen("Cars/vehicles.cfg",io_read);
while(fread(fhandle,temp,sizeof(temp),false))
{
sscanf(temp,"ddffffdd", carid, vmodel, x,y,z,a,color1,color2);
if(id == carid){
InfoMsgToAll("This is a car that needs to be deleted(this must be changed it something to remove the car");
}
}
fclose(fhandle);
return 1;
}