Jump to content
McKay Development

greenpig

Member
  • Posts

    3
  • Joined

  • Last visited

Posts posted by greenpig

  1. I am not completely sure why this happens,

    however this may happen if you're attempting to get it before cookies have been set.

     

    Attempt to fire the function when you have set cookies & sessionID.

    still not working any other way?

  2. If you want to get the SteamID of the user currently signed in,

    You can use following: (Client being steam-user instance)

    client.steamID;
    client.steamID.getSteamID64()
    
    client.steamID.getSteam3RenderedID()
    

    // Function names should be self-explanatory

    thanks also i want to ask i tried to use this 

    var userinfoapi = 'http://backpack.tf/api/users/info/v1?steamids='+ client.steamID.getSteamID64() + '%2C76561198070299574&key=' + config.bptftoken; 

     

    it output this 

    	
     
    [Finished in 2.009s]

    TypeError: Cannot read property 'getSteamID64' of null at [stdin]:vm.js:23:33) at Object.runInThisContext (vm.js:95:38) at Object.<anonymous> ([stdin]-wrapper:6:22) at Module._compile (module.js:571:32) at Immediate.<anonymous> (bootstrap_node.js:392:29) at runCallback (timers.js:666:20) at tryOnImmediate (timers.js:639:5) at processImmediate [as _immediateCallback] (timers.js:611:5)

    [Finished in 2.009s]
×
×
  • Create New...