<?php
updatelistofmods();
$list_mods = getlistofmods();
FOR($i = 0; $i < ToNum($list_mods["numofmods"]); $i = $i + 1)
$mods_id_array [1,$i] = "" . $list_mods[$i,"id"];
ENDFOR
writeline ( "NBR of mods: " . ToNum($list_mods["numofmods"]) );
dumpVar ($car_names_set_schedule);
dumpVar ($mods_id_array);
writeline ( "debug 3b = " . $mods_id_array [1,0] );
writeline ( "debug 4b = " . $mods_id_array [1,463] );
?>
But when I access information that should be in the array using this:
writeline ( "debug 3b = " . $mods_id_array [1,0] );
Or this:
writeline ( "debug 4b = " . $mods_id_array [1,463] );
The data is correctly returned.
To make sure that I have not lost my mind, I tried this "dumpVar ($car_names_set_schedule);" (this is an array that manually get filled with data) and that is returning array data, so the dumpVar command it self is not broken.
The array "$mods_id_array" is declared as a globalvar (see attached script) so I have no idea what I am missing here.
I can go on with the things I want to build, but do like to know why the content of the array is not properly returned.