mrxbell Posted March 24, 2018 Report Posted March 24, 2018 When i receive offer . I get market_hash_name using offer.itemsToReceive[0].market_hash_name But when i using offer.getReceivedItems(function (err, items) { //Why items[0].market_hash_name !== offer.itemsToReceive[0].market_hash_name } It only happen when i received item in game PUBG (example item with market_hash_name: 'Combat Pants (camo)' ) Thanks ! Quote
Dr. McKay Posted March 24, 2018 Report Posted March 24, 2018 There is no guaranteed order for the output of getReceivedItems. If you need to map input to output items, use getExchangeDetails. Quote
mrxbell Posted March 24, 2018 Author Report Posted March 24, 2018 (edited) There is no guaranteed order for the output of getReceivedItems. If you need to map input to output items, use getExchangeDetails. I only receive 1 item. Because order is not reason . I need get new assetid, if not using getReceivedItems how can do this ? Edited March 24, 2018 by mrxbell Quote
Dr. McKay Posted March 24, 2018 Report Posted March 24, 2018 Use getExchangeDetails to get the new assetid. 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.