This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

Bz getPlayerByIndex: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
New page: {{apicall | name = bz_getPlayerByIndex | description = Gets the information for the player at the index specified. The index should be one of the elements of the list returned b...
 
Zehra (talk | contribs)
redirect, since functions are in official docs
Tag: New redirect
 
Line 1: Line 1:
{{apicall
#REDIRECT [[Category:BZFS API Docs]]
| name          = bz_getPlayerByIndex
| description  = Gets the information for the player at the index specified. The index should be one of the elements of the list returned by [[bz_getPlayerIndexList]]. The returned player info won't update as the game progresses. If you need new updates on the player's info, you can call [[bz_updatePlayerData]].
 
After you're done with the player info returned from this method, you must release it by calling [[bz_freePlayerRecord]].
| param1        = index
| param1type    = int
| param1desc    = The index of the player in question, as obtained from bz_getPlayerIndexList
| returntype    = bz_BasePlayerRecord*
| returns      = an instance of [[bz_BasePlayerRecord]] that contains the player in question's information
}}

Latest revision as of 01:02, 26 November 2025