Difference between revisions of "My id"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m
imported>StDoodle
m
Line 9: Line 9:
 
return_type={{#var:return_type}}|
 
return_type={{#var:return_type}}|
 
return_also={{#var:return_also}}
 
return_also={{#var:return_also}}
}|
+
}}|
 
function_description=Returns the Character ID of the logged-in character.|
 
function_description=Returns the Character ID of the logged-in character.|
 
code1={{CodeSample|
 
code1={{CodeSample|
Line 17: Line 17:
 
<syntaxhighlight>
 
<syntaxhighlight>
 
visit_url("showplayer.php?who=" + my_id());
 
visit_url("showplayer.php?who=" + my_id());
</syntaxhighlight>}}|
+
</syntaxhighlight>
 +
}}|
 
see_also={{SeeAlso|my_name}}|
 
see_also={{SeeAlso|my_name}}|
 
special=When no character is logged in, this function returns "0".
 
special=When no character is logged in, this function returns "0".
 
}}
 
}}

Revision as of 16:04, 28 February 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

my_name()

Special

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