06.12.2015, 11:11
Why do you use j?
Try this:
Try this:
Код:
function LoadDSVeh() { dsvehs = cache_num_rows(); for(new i = 1; i <= dsvehs; i++) { DSModels[i][dID] = i; DSModels[i][dModel] = cache_get_field_content_int(i, "Model"); DSModels[i][dPrice] = cache_get_field_content_int(i, "Price"); DSModels[i][dStock] = cache_get_field_content_int(i, "Stock"); DSModels[i][dDoors] = cache_get_field_content_int(i, "Doors"); cache_get_field_content(i, "Type", DSModels[i][dType], SQL, 129); DSModels[i][dMaxSpeed] = cache_get_field_content_int(i, "MaxSpeed"); } printf("[MYSQL] Dealership Vehicles: %d", dsvehs); }