25.08.2015, 20:09
Код:
stock IncreaseVehicleHours() { for(new id = 0; id <= MAX_PLAYERS; id++) { VehicleInfo[id][minutes] += 1; VehicleInfo2[id][minutes] += 1; MotoInfo[id][minutes] += 1; PlaneInfo[id][minutes] += 1; if(VehicleInfo[id][minutes] >= 60) { VehicleInfo[id][hours] += 1; VehicleInfo[id][minutes] = 0; } if(VehicleInfo2[id][minutes] >= 60) { VehicleInfo2[id][hours] += 1; VehicleInfo2[id][minutes] = 0; } if(MotoInfo[id][minutes] >= 60) { MotoInfo[id][hours] += 1; MotoInfo[id][minutes] = 0; } if(PlaneInfo[id][minutes] >= 60) { PlaneInfo[id][hours] += 1; PlaneInfo[id][minutes] = 0; } } }