Jump to content


Photo

CreateOffer if i dont know partner trade url

node.js node-steam-tradeoffer-manager

  • Please log in to reply
3 replies to this topic

#1 Enemtia

Enemtia

    Member

  • Member
  • PipPip
  • 10 posts

Posted 18 May 2017 - 03:20 AM

Hi guys!

 

How to send offer my friends,  if i dont know partner trade url?

var offer = manager.createOffer('[U:1:46143802]');

SteamID3 not working.



#2 jafix

jafix

    Advanced Member

  • Member
  • PipPipPip
  • 40 posts

Posted 18 May 2017 - 03:53 AM

You should use steamID64. That's the one that starts with 76.

Edited by jafix, 18 May 2017 - 03:55 AM.


#3 Enemtia

Enemtia

    Member

  • Member
  • PipPip
  • 10 posts

Posted 18 May 2017 - 03:59 AM

Not working.

 

Fail: if((matches = input.match(/^Steam...

 

TypeError: input.match is not a function


Edited by Enemtia, 18 May 2017 - 04:00 AM.


#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,363 posts

Posted 18 May 2017 - 04:29 PM

The code in your first post will absolutely work. Regarding your second post, are you passing the 64-bit SteamID as a string instead of a number? JavaScript can't handle integers that are that big.







Also tagged with one or more of these keywords: node.js, node-steam-tradeoffer-manager

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users