Difference between revisions of "GetPlayerByUsername"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> Returns a reference to the CPlayer that has the given username, if one currently exists, otherwise it returns null. </onlyinclude> <syntaxhighlight lang="cpp"> ...")
(No difference)

Revision as of 20:21, 27 August 2012

Returns a reference to the CPlayer that has the given username, if one currently exists, otherwise it returns null.

CPlayer@ getPlayerByUsername( string name )

Usage example:

CPlayer@ player = getPlayerByUsername(username);