steam_get_user_steam_id

Get the user id of the user currently logged into the Steam client.

Syntax:

steam_get_user_steam_id();


Returns: real


Description

You can use this function to return the unique Steam user id of the user currently logged into the Steam client. This is a unique 64 bit value that can be used to identify individual users and not their on screen user name (this can be found using the function steam_get_persona_name).


Example:

if steam_initialised()
   {
   global.u_id = steam_get_user_steam_id();
   }

The above code will set a global variable to the current users unique Steam ID if the Steam client API is correctly initialised.


Back: Steam API
Next: steam_is_user_logged_on
© Copyright YoYo Games Ltd. 2018 All Rights Reserved