Inventory system not working properly.

Can you show your code for ‘display inventory’?