dest0x Posted December 6, 2017 Report Posted December 6, 2017 (edited) Hey! I'm kinda new to node, and to async programming at all.So I'm sending multiple trade offers with a for loop and Im getting a null offer.id on them. I understood that I have to do a callback but I don't know how.Can you please tell me how to do a callback on the offer.send function. Thanks in advance! Edited December 6, 2017 by dest0x Quote
dest0x Posted December 6, 2017 Author Report Posted December 6, 2017 (edited) Okay, so I did the callback but the id of the first offer is still null Here is my code sendTradeOffer.send(function(err, status) { if (err) { console.log(err); } console.log("Offer #" + sendTradeOffer.id + " " + status); }); Console Offer #null sent Offer #2747509293 sent Edited December 6, 2017 by dest0x 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.