20.07.2014, 20:09
The only thing I can think, is creating vehicles outside the map if IDs don't match, but only in that case if vehicle ID from file is bigger than created vehicle ID and there is no possibility to add vehicles while loading them. For example:
pawn Код:
// vehicle loading
// your loop through %i.ini files (%i is variable 'v' in this case)
new bool:cveh = false;
new vehid = CreateVehicle(...);
while(vehid < v)
{
if(!cveh) DestroyVehicle(vehid);
vehid = CreateVehicle(any model any pos); // this is going to be your 'fake' vehicle
cveh = true;
}
if(cveh) vehid = CreateVehicle(...); // your vehicle with ID that matches filename