[Include] Player Inventory System 0.2b (Menu + Save / Load)
#8

Quote:
Originally Posted by Weirdosport
Came across another bug, where I ended up with the following setup:

Code:
Package 1 x3
Package 3 x1
Package 2 x1
Package 2 x1 <-- Did not increase package 2 quantity, added separate item
Also when I selected an item from the menu, it executed the command I wanted, but it left the player uncontrollable. Do I have to add a return 1; to this callback?
EDIT:
Wirdosport. Since this is a library, I don't think theres a way of knowing when the player left the menu without you calling a function.
Please call the 'DestroyPlayerInventoryMenu()' in 'OnPlayerExitedMenu'. This removes the menu from the memory and sets the player controllable.

Is the Item ID the same?
Because, it is supposed to only add the quantity if the itemid is the same.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)