My id: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Zarqon
m new link
imported>StDoodle
mNo edit summary
Line 1: Line 1:
[[string]] [[my_id()]]
{{function|
name=my_id|
returns=string|
}}


This function returns the logged-in character's id number as a [[string]].
This function returns the logged-in character's id number as a [[string]].
Line 8: Line 11:
   [[visit_url()|visit_url]]("showplayer.php?who=" + [[my_id()]]);
   [[visit_url()|visit_url]]("showplayer.php?who=" + [[my_id()]]);
</code>
</code>
[[Category:Your Character | My ID()]]
[[Category:Ash Functions | My ID()]]


When no character is logged in, this functions returns "0".
When no character is logged in, this functions returns "0".
[[Category:Your Character | My ID()]]

Revision as of 20:08, 22 February 2010

[[Data Types#{{{return_type}}}|{{{return_type}}}]] my_id()


This function returns the logged-in character's id number as a string.

This example visits your public charsheet:

 visit_url("showplayer.php?who=" + my_id());

When no character is logged in, this functions returns "0".