FANDOM


user.GetPlayerID

Function
integer user.GetPlayerID()
Description
Gets the user name.
V1 Function Name
New to V2

user.GetPlayerID returns the numeric identifier for the current user.

The code:

print ( "player id = " .. user.GetPlayerID () )

might produce the output:

player id = 476462

The player id is padded with zeroes on the left to 10 spaces, and used to name a subdirectory of the puzzles directory for the current puzzle, for example:

C:\Foldit\puzzles\*puzzleid*\0000476462

(See puzzle.GetPuzzleID for the value of *puzzleid*.)

The puzzle id (without padding) is also the "node" of the player's page on the Foldit website, for example:

https://fold.it/portal/user/476462
Community content is available under CC-BY-SA unless otherwise noted.