Jump to content
McKay Development

Recommended Posts

Posted

hi there ,

im make steam trade offer but i cant send and receive item

this is my code

manager.loadInventory(appid, contextid, true, function(err, inventory) {
	            if (err) {
	                console.log("ERR : "+err);
	                process.exit();
	            }

	            

	            console.log("Found " + inventory.length + " items");
	            /*var iteminventory = {
	                "assetid": offerid,
	                "appid": appid,
	                "contextid": contextid,
	                "amount" : 1
	            };*/

	            // Create and send the offer
	            var offer = manager.createOffer("https://steamcommunity.com/tradeoffer/new/?partner="+accountid+"&token="+token);
	            offer.addMyItems(iteminventories);
	            offer.addTheirItems(itemtheirinventories);
	            offer.setMessage("SENT  !");
	            offer.send(function(err, status) {
	                if (err) {
	                    console.log("ERR : " + err);
	                   
	                    process.exit();
	                }

	                if (status == 'pending') {
	                    // We need to confirm it
	                    console.log('Offer #${'+offer.id+'} sent, but requires confirmation');
	                    community.acceptConfirmationForObject("confirm code", offer.id, function(err) {
	                        if (err) {
	                            console.log("ERR : "+err);
	                            //process.exit();
	                        } else {
	                            console.log("Offer confirmed");
	                    
	                        }
	                    });
	                } else {
	                    console.log('Offer #${'+offer.id+'} sent successfully');
	
	                }
	            });
	        });

i getting error code 26

https://steamerrors.com/26

i know this error for item not exist but item id is exist in inventory .

best solution for my code

tnx

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...