The online racing simulator
Cannot get dumpVar to work with Mod ID's

<?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] );
?>

I've made this simple piece of code and for some reason this "dumpVar ($mods_id_array);" is always returning an empty array.
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.
Attached files
schedule_set.txt - 152.5 KB - 94 views
** Best answer **
I have found the issue my self Frown
This:

<?php 
$mods_id_array 
[1,$i] = "" $list_mods[$i,"id"];
?>

Should be this:

<?php 
$mods_id_array
[1,$i] = "" $list_mods[$i,"id"];
?>

This thread is closed

FGED GREDG RDFGDR GSFDG