17.05.2015, 12:18
My resource is T0pAz's vehicle system, I'm just trying to memorize it and understand the things how they work. I don't really understand this part:
What do you mean by using break; ? Something like this?
Код:
stock VehicleLoadAll() { new index = 0; while(fexist(VehiclePath(index))) { for(new i=0; i<MAX_VEHICLES; i++) { if(validcar[i]) { VehicleLoad(index, VehiclePath(index)); index++; } } } printf("Vehicles Loaded: %i", index); }
Код:
stock VehicleLoadAll() { new index = 0; while(fexist(VehiclePath(index))) { for(new i=0; i<MAX_VEHICLES; i++) { if(validcar[i]) { VehicleLoad(index, VehiclePath(index)); index++; } else { break; } } } printf("Vehicles Loaded: %i", index); }