My id

From Kolmafia
Revision as of 04:33, 29 January 2009 by imported>Zarqon (created page with small example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

string 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".