Can someone help please, thanks.
Client API: 1.7.13
Server version: 2.16.0
Create room code:
Code: Select all
p_initVariables = new List<RoomVariable>();
p_initVariables.Add(new SFSRoomVariable(SFSVariable.ROOM_PLAYING, false)); //SFSVariable.ROOM_PLAYING = "rp"
RoomSettings settings = new RoomSettings(p_roomName);
settings.IsGame = true;
settings.GroupId = "battlearena";
settings.AllowOwnerOnlyInvitation = false;
settings.MaxUsers = (short)p_maxUser;
settings.MaxVariables = 100;
settings.Password = p_password == null ? "" : p_password;
settings.Permissions = new RoomPermissions();
settings.Permissions.AllowPasswordStateChange = true;
settings.Permissions.AllowPublicMessages = true;
settings.Permissions.AllowResizing = true;
settings.Variables = p_initVariables;
Log("Create game room: " + p_roomName);
Create room worked fine, i got ROOM_ADD event success, but the player created room not auto join room. I checked on AdminTool and see that the created game room show up with correct owner (player id), but no user in room.
Note that after create room, if i can join room manually, it worked fine. But what i want to auto join room, because other player can join that room first and cause the creator cant join his room.