Code: Select all
[Received]: <msg t="sys"><body action="roomAdd" r="0"><rm id="9" priv="0" temp="1" game="1" max="8" spec="1"><name>TESTING</name><vars><var n="minbet" t="n">1</var></vars></rm></body></msg>
but when i try to use: var xMinBet = room.getVariable("minbet"); at roomAdded or updateRoomStatus, it returns undefined all the time. Now this variable was assigned when the room was created, through the roomObj.vars = variables
I do remember once in another case, that i set the room variable after joining that room, i think i recieved the value in that scenario (i think)
So how have i been able to go ahead with this problem? .... im using the maxSpectator property instead, the value is aaaalways available and much more reliable, but absolutely not a permanant solution. Any help from anyone in this area would be awsome