Jump to content
McKay Development

dest0x

Member
  • Posts

    2
  • Joined

  • Last visited

Posts posted by dest0x

  1. 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
  2. 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!

×
×
  • Create New...