Make sure you InventoryArr is cleared and set to 0 X-size (Set Size 0,1,1) otherwise, the array value defaults to 0. Also, make sure you destroy all of the items sprites upon entering the inventory so that you display loop can work with a clear inventory.
I actually had the same problem when I was testing this capx too.
Another option is to exclude the 0 index from your items array and put a condition in your loop that bypasses any 0 values.
> all the other items that i create are being created and deleted so fast that you can't even see it being destroyed and created again
> I am not sure what this means?
Keep in mind though, that every global event will run every tick (or as fast as possible); so if you have an unconditioned destroy event, it will continually destroy your items.
again, now i've set the size to 0, 1, 1 and now it's the same as yours:
but it makes even less sense cause now it's already creating TWO itens when i open the inventory, and now i've uploaded a video example so you can see the two itens already being there and what i mean by "being created and destroyed very fast"
(the red shit on the left is used to create more itens when clicked)