My id: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>StDoodle
mNo edit summary
Line 1: Line 1:
{{FunctionPage |
{{FunctionPage |
page_name=my_id|
page_name=my_id|
function_category=Your Character
function_category=Your Character|
function1_return_type=string|
function1_return_type=string|
function_description=Returns the Character ID of the logged-in character. |
function_description=Returns the Character ID of the logged-in character. |

Revision as of 12:44, 25 February 2010

Function Syntax

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());

Special

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