I have this code.

Code:
var r =ssCore.INIFile.getVal({path:file, section:"Weapon", key:"delay", defaultValue:"?"});
weapon_delay[i]=parseInt(r.result);
if i trace r.result it will come up with the right value, but when i trace weapon_delay[1] it comes up as undefined.

there should be 4 values in weapon_delay.