Get player name

Returns the name being currently used by the specified player, returning “P1”, “P2”, etc. if the player has no name set.

Syntax
get_player_name( player );

Returns
string

Examples
//post_draw.gml //this draws the current player name as debug text under the character: draw_debug_text(x, y+10, get_player_name( player ));