This wiki is archived and useful information is being migrated to the main bzflag.org website

Difference between revisions of "Bz incrementPlayerWins"

From BZFlagWiki
Jump to: navigation, search
(Created page with "{{apicall | name = bz_incrementPlayerWins | description = Increments the wins of a player. | param1 = playerID | param1type = int | param1desc = The pl...")
 
(Add minimum API version)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
| name          = bz_incrementPlayerWins
 
| name          = bz_incrementPlayerWins
 
| description  = Increments the wins of a player.
 
| description  = Increments the wins of a player.
 +
| version = 2.4.3
 
| param1        = playerID
 
| param1        = playerID
 
| param1type    = int
 
| param1type    = int
 
| param1desc    = The player who is affected by the win change.
 
| param1desc    = The player who is affected by the win change.
| param2        = wins
+
| param2        = increment
 
| param2type    = int
 
| param2type    = int
| param2desc    = The wins to add to the player. (0 to leave the wings unchanged, negative number to decrement the wins)
+
| param2desc    = The wins to add to the player. (0 to leave the wins unchanged, negative number to decrement the wins)
 
| returntype    = bool
 
| returntype    = bool
 
| return        = Whether the player exists.
 
| return        = Whether the player exists.
 
}}
 
}}

Latest revision as of 21:11, 14 June 2015

void bz_incrementPlayerWins (int playerID, int increment)


Minimum API Version: 2.4.3
Increments the wins of a player.

Parameters:
playerID  -  The player who is affected by the win change.
increment  -  The wins to add to the player. (0 to leave the wins unchanged, negative number to decrement the wins)