When i send chat command to activate this I get error which i dont know to fix. If i leave just my item it is same. D:\Radna površina\bot>pause Press any key to continue . . . code:
if(numberOfKeys > 10) { client.chatMessage(steamID, "You cannot buy that much"); }
else {
var offer = manager.createOffer(steamID);
manager.loadInventory(753, 6, true, function(err, myItems) {
itemx = {
appid: 304930,
contextid: 2,
amount: 1,
assetid: '646664519304758668'
}
offer.addMyItem(itemx);
offer.loadPartnerInventory(753, 6,true, function(err, theirItems) {
if(err) {
console.log(err);
return;
}
itemy =
{
appid: 753,
contextid: 6,
amount: 1,
assetid: '1922357299630920400'
}
offer.addTheirItem(itemy);
offer.send("");
});
});
client.chatMessage(steamID, "Processing");
}