Get Player Name
GetPlayerName(player as ID) as String
- ID of player to search for
Given the account root ID, this function returns the name of the character the player has logged in.
If the player has not selected a character, this returns the login name, ie SIMU-HAPPYPLAYER.
This function only works at the world server level and in the area the player is in.
If the player is not online, this function will return a null string.
For more information see: Character functions
pc as ID = me char as string char = GetPlayerName(me)