Carloskhard
Member
So I have an array of 2 dimensions. I have declared the position [0,1] (also the position [0,0] for security, idk). If I access it after creating it ,it works, but if I access it after passing room it gives me an error: Variable index[0,1] out of range [1,1] - - 1.array[100184,1]
*Note that the object containing it its persistent.
BUT if I put that on a debug message likis this:
show_debug_message(icon[0,1]);
in the output it writes the correct number which is saved there!!
How is it telling me that the variable index is out of range if OBVIOUSLY is accesing it and returning the info to the outout at the same time????
This happens only if I put other room before so that makes it even more confusing.
Is there something about 2D arrays Im missing?
What is that error message exactly saying?
Please help.
*Note that the object containing it its persistent.
BUT if I put that on a debug message likis this:
show_debug_message(icon[0,1]);
in the output it writes the correct number which is saved there!!
How is it telling me that the variable index is out of range if OBVIOUSLY is accesing it and returning the info to the outout at the same time????
This happens only if I put other room before so that makes it even more confusing.
Is there something about 2D arrays Im missing?
What is that error message exactly saying?
Please help.
Last edited: