Insanic12 Posted October 25, 2016 Report Posted October 25, 2016 manager.loadUserInventory(user, 730, 2, true, function (inventory, err) { if (err) { console.log(warning("[WARNING]: Couldn't load inventory of " + user + "!")); } else { console.log(inventory); } }); Why does it return err? I've done everything correctly and i've checked so the variable $user is equal to a valid steamid. Quote
Dr. McKay Posted October 25, 2016 Report Posted October 25, 2016 The order of your inventory and err arguments is wrong. Order matters. Also, you might try printing the error if one occurs for more insight. 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.