Inventory
#3
I found a "way" to remove a item or change the amount over the method AddItem(cItem)
1) Copy the item
2) Make the variable m_ItemCount negativ (item.m_ItemCount = item.m_ItemCount * -1)
3) Add the item over AddItem

Nice it accepts negative integersBig Grin
Only problem sometimes the items amount is not changing and this cause sync errors Sad

Edit: But yes a remove method would be much better.
Reply
Thanks given by:


Messages In This Thread
Inventory - by Seadragon91 - 07-19-2014, 01:45 AM
RE: Inventory - by xoft - 07-19-2014, 02:30 AM
RE: Inventory - by Seadragon91 - 07-19-2014, 02:38 AM
RE: Inventory - by Seadragon91 - 08-29-2014, 03:53 AM
RE: Inventory - by NiLSPACE - 08-29-2014, 03:55 AM
RE: Inventory - by Seadragon91 - 08-29-2014, 03:59 AM
RE: Inventory - by Bobstergaming - 11-17-2015, 06:14 AM
RE: Inventory - by worktycho - 11-19-2015, 08:51 PM



Users browsing this thread: 1 Guest(s)