helper.setPlayerInfo
Prototype
function setPlayerInfo(playername, infodata)
Input parameters
playername - user name of the player to set the data for
infodata - data to associate with the player
Return value
null
Description
Associates an object with a player. The data can be retrieved at any time using the getPlayerInfo function.
Example code
var playerInfo = {"score":0, "correctLastAnswer":-1,
"lastAnswer":-1, "lastScore":-1};
setPlayerInfo(playerName, playerInfo);
