- Joined
- Dec 13, 2018
- Messages
- 384
Given that:
Why does:
Give me "Error : Only strings and arrays may be indexed." on build when help says "Stacks may also be efficiently indexed using an integer index, and elements may be inserted and removed."? Does that only apply to the int/float/string versions perhaps or am I doing something wrong?
Cerberus:
Global playerInventory:Stack<InvItem>
Why does:
Cerberus:
playerInventory[combineIndex].quantity += tempItem.quantity
Give me "Error : Only strings and arrays may be indexed." on build when help says "Stacks may also be efficiently indexed using an integer index, and elements may be inserted and removed."? Does that only apply to the int/float/string versions perhaps or am I doing something wrong?