Yea, I looked through the tutorial. Let me actually look at your capx.
First observation, it doesn't look like you actually filled your array with any data. So you are working with a blank array, like this:
[]
or actually this:
{"c2array":true,"size":[10,1,1],"data":[[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]]]}:
indices: -------------------------------------------0-----1-----2-----3-----4----5-----6-----7-----8-----9
This is what a new Array in Construct2 defaults to. You will see this if you output the array as JSON, like Array.AsJSON. You can always use Array.AsJSON to output the contents of any of your arrays to a TextBox in order to help you debug data-driven logical errors.
So, when you say:
You are looping through the above array, which just contains a bunch of zeroes for all 10 indices of the array (the indices being 0 to 9).
If you want actual data in there, you need to loop through however many resources you have an actually initialize the data, otherwise you will get continued logical errors.
You need something like this:
in order to initialize the numbers of each resource in your inventory (assuming you are using the array index as a corollary for the resource id).
Note: I used random(100), but I assume you know already how many of each resource your player has.