Get Player Name

From HEWIKI
Jump to: navigation, search

GetPlayerName(player as ID) as String

Arguments

<player> 
ID of player to search for

Description

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

Example

pc as ID = me
char as string
 
char = GetPlayerName(me)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox