Jump to content
McKay Development

Nacho

Member
  • Posts

    21
  • Joined

  • Last visited

Posts posted by Nacho

  1. Surely there is more code in your application than just that snippet.

     

    Also, provide the entire output please.

    It was an error that was before getExchangeDetails, I fix it. But now getExchangeDetails, if I print the receivedItems it only print the hour. Here is the code and the output: 

        offer.getExchangeDetails(function (err, status, receivedItems){
        if(err){
          console.log("probando error");
        }
        else{
          console.log(receivedItems);  
        }
        });

    Output

    2017-08-06T13:50:17.000Z
    
  2. The way you've used it looks correct to me (although you probably want to console.log that err). I'd need to see more (like more of the error).

    undefined:1
    [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
     ^
    
    SyntaxError: Unexpected token o in JSON at position 1
    

    Only logs this. Thanks <3

  3. If that's supposed to be an error, you've cut off most of the useful part of it.

    Thank you for your answer, but I really don't know how to use it. It was an example what I have used. I only want to get the receivedItems as an array, but I don't know how to use getExchangeDetails, can you give me an example? Thanks

  4. Hello, I'm using this to get "getExchangeDetails" but it always give me 

    undefined:1
    [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
     ^
    

    This is the code, thank you!

      offer.getExchangeDetails(function(err, status, tradeInitTime, receivedItems, sentItems) {
        if(!err){
          console.log("Trade status is " + status + ", init time " + tradeInitTime + ", and we received " + receivedItems.length + " items and sent " + sentItems.length + " items.");
        }else{ 
          err;
        }
        });
    
  5. Hello, I use offer.addMyItems(temp); It gives me the following error: 

    { Error: There was an error sending your trade offer.  Please try again later. (26)
    

    The thing is that I can send this items manually but with the addMyItems no. This is the array, maybe there's an error? Thanks.

    [ { assetid: 'Foo',    
        market_hash_name: 'Glove Case',
        price: 0,
        appid: 730,
        contextid: '2' },
      { assetid: 'Foo',
        market_hash_name: 'MAC-10 | Silver (Factory New)',
        price: 0,
        appid: 730,
        contextid: '2' },
      { assetid: 'Foo',
        market_hash_name: 'Nova | Sand Dune (Field-Tested)',
        price: 0,
        appid: 730,
        contextid: '2' },
      { assetid: 'Foo',
        market_hash_name: 'Nova | Sand Dune (Field-Tested)',
        price: 0,
        appid: 730,
        contextid: '2' },
      { assetid: 'Foo',
        market_hash_name: 'P90 | Sand Spray (Field-Tested)',
        price: 0,
        appid: 730,
        contextid: '2' },
      { assetid: 'Foo',
        market_hash_name: 'USP-S | Night Ops (Minimal Wear)',
        price: 0,
        appid: 730,
        contextid: '2' },
      { assetid: 'Foo',
        market_hash_name: 'Glove Case',
        price: 0,
        appid: 730,
        contextid: '2' } ]
    
  6. Hello, I perfom in bash npm install node-community but it gives me this error

     
    ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/node-steamcommunity
    ERR! 404 
    ERR! 404  'node-steamcommunity' is not in the npm registry.
    ERR! 404 You should bug the author to publish it (or use the name yourself!)
    ERR! 404 
    ERR! 404 Note that you can also install from a
    ERR! 404 tarball, folder, http url, or git url.
     
    Thanks
×
×
  • Create New...