Create room failed: invalid max number of users

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
sgazdag
Posts: 3
Joined: 26 Dec 2010, 16:31

Create room failed: invalid max number of users

Post by sgazdag »

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.

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 users
The extension is created from some sample in the site so it is too easy to mess up.

Code: 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);
       	}
}
The extesion runs smoothly but the room creation is not happening. Is there something I haven't thought of.

Thanks in advance
Sandor
Last edited by sgazdag on 15 Jan 2011, 12:00, edited 1 time in total.
sgazdag
Posts: 3
Joined: 26 Dec 2010, 16:31

SOLVED

Post by sgazdag »

Sorry about posting so early. I have not checked out the documentation the way I should. The max number of users in the room is not maxUsers but maxU

In case of tis error you guys should see:
http://www.smartfoxserver.com/docs/docP ... /index.htm


Great docs by the way.

sandor
Post Reply