Jump to content
McKay Development

Recommended Posts

Posted

Apologies if this is an obvious problem.

I have a function that is called that gets a user's inventory, and then pipes that array to another function.

It looks like this:

 

function getInv(steamID) {
    community.getUserInventoryContents(steamID, 730, 2, true, 'english', offercase(err, inventory, currencies, totalitems));
}

 

And is called like this:

getInv(data.steamID)

With data.steamID being formatted as 

{ universe: 1, type: 1, instance: 1, accountid: 123456789 }

When it's run, it states that "err" is undefined. What's the issue here?

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...