I try powers when a user enter to room with the ID 29. This is the code that I have in the frame:
Code: Select all
smartfox.sendModeratorMessage("MESSAGE!", SmartFoxClient.MODMSG_TO_ROOM, 29);
smartFox.onModeratorMessage = onModeratorMessageHandler();
function onModeratorMessageHandler(msg:String):Void {
trace("Moderator said: "+msg);
}
But the server says:
Code: Select all
23:53:20.828 - [ WARNING ] > SysHandler -> Bad room id. Action: modMsg >> java.l
ang.NumberFormatException: For input string: "null"
What's wrong?