xboxlive_get_user

With this function you can retrieve the user ID pointer for the indexed user. If the user does not exist, the function will return the constant pointer_null instead. You can find the number of users currently logged in with the function xboxlive_get_user_count().

IMPORTANT: This function should only be used with xboxlive_get_user_count() - do not use this with gamepads. Use xboxlive_user_for_pad() instead.

 

 

Syntax:

xboxlive_get_user(index);

ArgumentTypeDescription
indexRealThe index (an integer) to get the User ID from.

 

Returns:

Xbox User ID or pointer_null

 

Example:

for(var i = 0; i < xboxlive_get_user_count(); ++i;)
{
    user_id[i] = xboxlive_get_user(i);
}

The above loops through all the signed in users and stores their unique ID pointer in an array.