My id: Difference between revisions
Jump to navigation
Jump to search
imported>Alhifar No edit summary |
imported>StDoodle mNo edit summary |
||
Line 1: | Line 1: | ||
{{#vardefine:name|my_id}} | {{ | ||
{{#vardefine:return_type|string}} | #vardefine:name|my_id}}{{ | ||
{{FunctionPage| | #vardefine:return_type|string}}{{ | ||
FunctionPage| | |||
name={{#var:name}}| | name={{#var:name}}| | ||
function_category=Your Character| | function_category=Your Character| |
Revision as of 13:29, 8 March 2010
Function Syntax
string my_id()
Returns the Character ID of the logged-in character.
Code Sample
This example allows you to visit your own charsheet.
visit_url("showplayer.php?who=" + my_id());
See Also
Special
When no character is logged in, this function returns the Character ID of the last logged-in character or 0 if no character has logged in yet.