How to add moderation powers to mod?

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

UrbaLoca
Posts: 86
Joined: 29 Nov 2006, 16:44

How to add moderation powers to mod?

Postby UrbaLoca » 18 May 2008, 21:12

Hello. I have a user called 'mod'. The user is mod, how I can alert, kick and ban users with the user mod?

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?

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 74 guests