doc update for SetPlayerData

This commit is contained in:
Tim Felgentreff 2022-03-03 22:43:07 +01:00
parent 991c5c988d
commit 8425934c31

View file

@ -1111,9 +1111,12 @@ static int CclGetPlayerData(lua_State *l)
**
** Example:
**
** <div class="example"><code>SetPlayerData(0,"Name","Nation of Stromgarde")
** SetPlayerData(0,"RaceName","human")
** SetPlayerData(0,"Resources","gold",1700)</code></div>
** <div class="example"><code>
** SetPlayerData(0,"Name","Nation of Stromgarde") -- set the name of this player
** SetPlayerData(0,"RaceName","human") -- the the race to human
** SetPlayerData(0,"Resources","gold",1700) -- set the player to have 1700 gold
** SetPlayerData(0, "Allow", "upgrade-paladin", "R") -- give the player the Paladin upgrade
** </code></div>
*/
static int CclSetPlayerData(lua_State *l)
{