Hay wie kann ich ein Fraktioncar aus meiner fraktioncars.cfg raus löschen?
hier mein CreateFraktionCar..
public CreateFraktionCar(car,fraktion,farbe,model)
{
FractionCars[car][fVehid] = model;
FractionCars[car][fPos][0] = -1966.4790;
FractionCars[car][fPos][1] = 294.1258;
FractionCars[car][fPos][2] = 35.4688;
FractionCars[car][fPos][3] = 266.5621;
FractionCars[car][fColor][0] = farbe;
FractionCars[car][fColor][1] = farbe;
FractionCars[car][fFraction] = fraktion;
FractionCars[car][fCarid] = CreateVehicle(model,FractionCars[car][fPos][0],FractionCars[car][fPos][1],FractionCars[car][fPos][2],FractionCars[car][fPos][3],FractionCars[car][fColor][0],FractionCars[car][fColor][1],-255);
new coordsstring[256];
new File: file2;
if(FractionCars[car][fVehid] >= 400 && FractionCars[car][fVehid] <= 611)
{
format(coordsstring, sizeof(coordsstring), "%d|%f|%f|%f|%f|%d|%d|%d\r\n",
FractionCars[car][fVehid],
FractionCars[car][fPos][0],
FractionCars[car][fPos][1],
FractionCars[car][fPos][2],
FractionCars[car][fPos][3],
FractionCars[car][fColor][0],
FractionCars[car][fColor][1],
FractionCars[car][fFraction]);
file2 = fopen("Fraktionscars.cfg", io_append);
fwrite(file2, coordsstring);
}
fclose(file2);
UpdateFraktionCars();
}