pumble Posted June 20, 2016 Report Posted June 20, 2016 Hey Guys, i run into a very simple problem but cant find a solution for it.during my creation process for the trade offer, i run a kind of loop and insert each item single into the trade offer object.the problem behind is, after ive added a item (e.g. a cs:go case) and in a other round of inserting i add the same case again the object "fails" to insert it, since its allready in it. the solution should be to increase the amount of it.and theres where i cant find a solution for, since its not only to increase it to 2..it could also be 3-xxxx . is there any way to recieve the amount of the item allready in the "offer object" so i can increase this directly or remove the item and insert it with a higher amount then ? p.s.sry for a non nativ english tried my best Quote
Dr. McKay Posted June 20, 2016 Report Posted June 20, 2016 You can't increase the "amount" of a non-stacked item. If you want to add multiple cases, you need to call addItem for each individual case object. Quote
pumble Posted June 20, 2016 Author Report Posted June 20, 2016 fixed it the problem was that ive tried to add the same item (same assetid) into the trade, which cause the trouble Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.