Quick question n.2: _server.createRoom
Posted: 06 Oct 2009, 20:52
I noticed this is not clear in the documentation so here it goes:
Page: http://www.smartfoxserver.com/docs/docP ... eRoom.html
By creating a room server from an extension that is a game (roomObj.isGame = true) does it automatically join the room creator like the client side coding? If so, does exitCurrentRoom=false works?
Page: http://www.smartfoxserver.com/docs/docP ... eRoom.html
By creating a room server from an extension that is a game (roomObj.isGame = true) does it automatically join the room creator like the client side coding? If so, does exitCurrentRoom=false works?
Code: Select all
var roomObj:Object = new Object();
roomObj.name = params.r;
roomObj.isGame = true;
roomObj.maxU =2;
roomObj.exitCurrentRoom = false;
var newGameRoom = _server.createRoom(roomObj, user, false, false);