Create room failed: invalid max number of users
Posted: 15 Jan 2011, 07:26
Hi guys,
Thanks for the help You have given me lately. You are a great help to me. Now I have another problem. I'm trying to pull up an e-learning surface based on SmartFox's SmartVideoConference. For this to work I also need to create rooms dynamically under the zone. I wrote a simple extension to test this functionality and I get the following error.
The extension is created from some sample in the site so it is too easy to mess up.
The extesion runs smoothly but the room creation is not happening. Is there something I haven't thought of.
Thanks in advance
Sandor
Thanks for the help You have given me lately. You are a great help to me. Now I have another problem. I'm trying to pull up an e-learning surface based on SmartFox's SmartVideoConference. For this to work I also need to create rooms dynamically under the zone. I wrote a simple extension to test this functionality and I get the following error.
Code: Select all
[lessonManager.as]: Exception! JavaException: it.gotoandplay.smartfoxserver.exceptions.ExtensionHelperException: Create room failed: invalid max number of users
[ WARNING ] > JavaException: it.gotoandplay.smartfoxserver.exceptions.ExtensionHelperException: Create room failed: invalid max number of usersCode: Select all
function handleRequest(cmd, params, user, fromRoom)
{
trace("Request received: " + cmd)
if (cmd == "bah")
{
var roomobj = new Object();
roomobj.name = "lesson";
roomobj.maxUsers = 3;
roomobj.maxSpectators = 0;
roomobj.isGame = true;
roomobj.isTemp = false;
roomobj.isPrivate = false;
_server.createRoom(roomobj, user, true);
}
}Thanks in advance
Sandor