Weiterhin 100%.
Moment, könnte es hier dranne liegen?
//Benzin-System2//
public BenzinVerlust()
{
for(new i = 0;i<MAX_VEHICLES;i++)
{
if(Motor[i] == true)
{
//Tank[i] = Tank[i] -1;
Tank[i] --;
if(Tank[i] <1)
{
Tank[i] = 0;
GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(i,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
Motor[i] = false;
}
}
}
return 1;
}