19.10.2012, 08:56
Quote:
stock GetValidVehiclesCount()
{ new count; for(new x = 0; x < MAX_VEHICLES; x++) { if(x != INVALID_VEHICLE_ID) { count++; } } return count; } Are you sure that works? How can a static, defined number equal a dynamic number in a for loop? |
EDIT - Didn't work, I tried it with grand larc, The original count was 1750 something while the script counted 2000 vehicles, I'll work on it.