30.04.2014, 20:25
(
Последний раз редактировалось Luis-; 30.04.2014 в 20:57.
)
Would this be efficient and would be the best way to lower fuel?
pawn Код:
switch(Speedoo) {
case 1..19: VehicleInfo[vehicleid][vFuel] -= 1;
case 20..29: VehicleInfo[vehicleid][vFuel] -= 2;
case 30..39: VehicleInfo[vehicleid][vFuel] -= 3;
case 40..49: VehicleInfo[vehicleid][vFuel] -= 4;
case 50..59: VehicleInfo[vehicleid][vFuel] -= 5;
case 60..69: VehicleInfo[vehicleid][vFuel] -= 6;
case 70..79: VehicleInfo[vehicleid][vFuel] -= 7;
case 80..89: VehicleInfo[vehicleid][vFuel] -= 8;
case 90..99: VehicleInfo[vehicleid][vFuel] -= 9;
case 100..119: VehicleInfo[vehicleid][vFuel] -= 10;
case 120..129: VehicleInfo[vehicleid][vFuel] =- 11;
case 130..139: VehicleInfo[vehicleid][vFuel] -= 12;
case 140..149: VehicleInfo[vehicleid][vFuel] -= 13;
case 150..159: VehicleInfo[vehicleid][vFuel] -= 14;
case 160..169: VehicleInfo[vehicleid][vFuel] -= 15;
case 170..179: VehicleInfo[vehicleid][vFuel] -= 16;
case 180..189: VehicleInfo[vehicleid][vFuel] -= 17;
case 190..199: VehicleInfo[vehicleid][vFuel] -= 18;
case 200..219: VehicleInfo[vehicleid][vFuel] -= 19;
case 220..229: VehicleInfo[vehicleid][vFuel] -= 20;
}