Larry Posted January 21, 2018 Report Posted January 21, 2018 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? Quote
Dr. McKay Posted January 21, 2018 Report Posted January 21, 2018 Get rid of the parenthesis with arguments in them. You're calling offercase(), not passing it as a function reference. 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.