08.07.2016, 13:08
First you need to get arguments for createvehicle (model, color, positions)
cache_get_field_content(i, "vehicleModelID", result);
new tmp_model = strval(result);
vid = CreateVehicle(tmp_model...
After this you can add values to array.
vehStat[vid][value] = ...
By the way, why you using cache like that?
Better way:
new tmp_model = cache_get_field_content_int(row, "vehicleModelID");
cache_get_field_content(i, "vehicleModelID", result);
new tmp_model = strval(result);
vid = CreateVehicle(tmp_model...
After this you can add values to array.
vehStat[vid][value] = ...
By the way, why you using cache like that?
Better way:
new tmp_model = cache_get_field_content_int(row, "vehicleModelID");