01.06.2012, 03:15
You will need to loop through all of the vehicles (using a for() loop):
pawn Код:
public SaveCarCoords()
{
for (new i = 1; i<MAX_VEHICLES; i++)//set a variable equal to 1 (first vehicle id) and loop it through max vehicles
{
if(GetVehicleModel(i)!=0) //GetVehicleModel returns 0 if the vehicle doesn't exist
{
//save the car to the file
}
}
return 1;
}