I have the following if statement:
Code: ags
However, even though I've called for the item's ID number, I still get the error:
Is inventory[player.ActiveInventory].ID not an int?
if (inventory[player.ActiveInventory].ID == GetGameParameter(GP_NUMINVITEMS,0,0,0)) {
However, even though I've called for the item's ID number, I still get the error:
Quote
Type mismatch: cannot convert 'Inventory Item*' to 'int'
Is inventory[player.ActiveInventory].ID not an int?