and this room stays as long as the user is inside it, and when the user left the room, it becomes destroyed
I'm using this code :
Code: Select all
// --- Room params -------------------------
var roomObj = {}
roomObj.name = "BlastRoom"
roomObj.maxU = 12
roomObj.isTemp= true
roomVars = [
{name:"RoomID", val: 1},
{name:"Room", val: 1},
{name:"Accr", val: 1},]
New_Room = _server.createRoom(roomObj, null, true, true, roomVars)
var New_Room_ID = New_Room.getId()
// Joining The Created Room In Database.
_server.joinRoom(user, -1, true, New_Room_ID)
when the user try to go to his house, the temporary Room is created succesfully and the user can go to his house,
but when the user try to left this temporary room to any basic room of project a wrong message come from server: user already exist in this room
,
and when someone else (another user) try to join the same temporary room ( to visit his friend in his home for example) a wrong message come from server: room already exist.
So I think the room isn't created well or should I use destroyRoom?