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 |
{{#vardefine:name|my_id}}
page_name=my_id|
{{#vardefine:return_type|string}}
{{FunctionPage|
name={{#var:name}}|
function_category=Your Character|
function_category=Your Character|
function1_return_type=string|
function1={{Function|
function_description=Returns the Character ID of the logged-in character. |
name={{#var:name}}|
code1={{CodeSample |
aggregate={{#var:aggregate}}|
return_type={{#var:return_type}}|
return_also={{#var:return_also}}
}|
function_description=Returns the Character ID of the logged-in character.|
code1={{CodeSample|
title=Code Sample|
title=Code Sample|
description=This example allows you to visit your own charsheet.|
description=This example allows you to visit your own charsheet.|
code=
code=
<syntaxhighlight lang="c">
<syntaxhighlight>
visit_url("showplayer.php?who=" + my_id());
visit_url("showplayer.php?who=" + my_id());
</syntaxhighlight>}} |
</syntaxhighlight>}}|
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:01, 28 February 2010


{{FunctionPage| name=my_id| function_category=Your Character|

function1=

string / }]] my_id()