Search code examples
actionscript-3smartfoxserver

SmartFoxServer Basic exitCurrentRoom = false not working


I'm trying to stay in current room, but exitCurrentRoom = false is not working, I leave the room everytime, how can I fix this or what is the problem ?!

I want to keep every user in lobby room so they can receive updates until the game begins.

var gameRoom = {};
        gameRoom.name = user;
        gameRoom.password = "";
        gameRoom.maxUsers = 4;
        gameRoom.isGame = true;
        gameRoom.exitCurrentRoom = false;

sfs.createRoom(gameRoom);

Thank you


Solution

  • The problem is that exitCurrentRoom is exitCurrent actualy. Just wasted many hours on this, I hope it helps somebody.

    More info here on last post.