Difference between revisions of "My id"
Jump to navigation
Jump to search
imported>StDoodle |
imported>StDoodle m |
||
Line 1: | Line 1: | ||
− | {{ | + | {{FunctionPage | |
− | {{ | + | page_name=my_id| |
− | + | function1_return_type=string| | |
− | returns | + | function_description=Returns the ID number of the logged-in character. | |
+ | code1={{CodeSample | | ||
+ | title=Code Sample| | ||
+ | description=This example allows you to visit your own charsheet.| | ||
+ | code= | ||
+ | <syntaxhighlight lang="c"> | ||
+ | visit_url("showplayer.php?who=" + my_id()); | ||
+ | </syntaxhighlight>}} | | ||
+ | special=When no character is logged in, this function returns "0". | ||
}} | }} | ||
− | + | [[Category:Your Character]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[Category:Your Character |
Revision as of 12:39, 25 February 2010
Function Syntax
Returns the ID number of the logged-in character.
Code Sample
This example allows you to visit your own charsheet.
visit_url("showplayer.php?who=" + my_id());
Special
When no character is logged in, this function returns "0".