enum Vnames{Pizzaboy,Sentinel,Roadtrain,};new Uzemanyag[Vnames];
enum Vnames{448,405,515,};new Uzemanyag[Vnames];
Most nincs kedvem minden model id-vel megcsinálni,de lenne egy újabb kérdésem: JarmuInfo[MAX_VEHICLES][uzemanyag] = 100; error 032: array index out of bounds (variable \"JarmuInfo\")
JarmuInfo[MAX_VEHICLES][uzemanyag] = 100;
Ezt hogy csinálhatnám meg?Hogy az összes kocsi Uzemanyag változója 100 legyen.
for(new i; i< MAX_VEHICLES;i++) JarmuInfo[uzemanyag] = 100;
newVehicleFuel[MAX_VEHICLES];newi = -1;for(;++i < MAX_VEHICLES;){switch(GetVehicleModel(i)){ case 411: VehicleFuel = 40;}}
newVehicleFuel[MAX_VEHICLES];newi = -1;for(;++i < MAX_VEHICLES;)VehicleFuel = 100;
for(;++i < MAX_VEHICLES;){switch(GetVehicleModel(i)){ case 411: // A jármû modelje, aminek 40es értéket adunk. VehicleFuel = 40;}}
switch(GetVehicleModel(i)){case 411: VehicleFuel = 40;case 412: VehicleFuel = 41;case 413: VehicleFuel = 100;case 414: VehicleFuel = 20;case 415: VehicleFuel = 39;}
switch(GetVehicleModel(i)){case 411..456: VehicleFuel = 40;case 457..460: VehicleFuel = 12;}