11.10.2017, 16:59
Quote:
put array for amount of vehicles you can put drugs in for example
define DRUG_CARS 69 new DrugCars[DRUG_CARS]; then you have to create vehicle like DrugCar[0] = AddStaticVehicleEx(info of car); //Bobcat .... DrugCar[69] = AddStaticVehicleEx(info of car); //Bobcat this 69 is number of vehicle(69+0=70 strange math i know) then when youre making command you must put in like if is vehicle DrugCars do this and if it isnt do this get it? |
Код:
new DrugCar[2]; DrugCar[0] = AddStaticVehicleEx(info of car); // 10 . // 11 . // 12 . // 13 DrugCar[1] AddStaticVehicleEx(info of car); // 14 new i=(DrugCar[0]-1); for(;++i<DrugCar[1];) { printf("id - %i", i); // Will print from 10 to 14 }