14.10.2013, 17:05
Wrong : Gorivo[o] = 40.00;
Right : else { Gorivo[o] = 40.00; }
Right : else { Gorivo[o] = 40.00; }
Код:
for(new o; o < MAX_VEHICLES; o++) { if(IsAPlane(GetVehicleModel(o)) || IsABoat(GetVehicleModel(o)) || IsABus(GetVehicleModel(o))) Gorivo[o] = 80.00; else if(IsAMotorVehicle(GetVehicleModel(o))) Gorivo[o] = 15.00; else if(IsATruk(GetVehicleModel(o))) Gorivo[o] = 100.00; else if(IsABycle(GetVehicleModel(o)) || GetVehicleModel(o) == 538) Gorivo[o] = 1000000.00; else { Gorivo[o] = 40.00; } if(!IsABycle(GetVehicleModel(o))) { new engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(o, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(o, 0, 0, alarm, doors, bonnet, boot, objective); } }