Trying to set up a little shop in a text RPG (yes, I know I should be using C) Trying to get it to where when a player sells an item it will be removed from their inventory.
this is the broken line of code/
pInventory.remove(itemsToFind[0][itemIndex])
but it keeps spiting back this error.
idk what i’m doing wrong, i’ve tried a lot of different things i’ve looked at tutorials and nada.
New contributor
CaptainX0912 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1