Assets/bl_PhotonConnection.cs(545,76): error CS0266: Cannot implicitly convert type `int' to `byte'. An explicit conversion exists (are you missing a cast?)
Assets/bl_PhotonConnection.cs(545,76): error CS0266: Cannot implicitly convert type int' to
byte'. An explicit conversion exists (are you missing a cast?)
if(GUI.Button( new Rect(150,330,175,50),"Create Game")) { PhotonNetwork.player.name = playerName; //Save Room properties for load in room ExitGames.Client.Photon.Hashtable roomOption = new ExitGames.Client.Photon.Hashtable(); roomOption[PropiertiesKeys.TimeRoomKey] = RoomTime[r_Time]; roomOption[PropiertiesKeys.GameModeKey] = GameModes[CurrentGameMode]; roomOption[PropiertiesKeys.SceneNameKey] = m_scenes[CurrentScene].m_SceneName; roomOption[PropiertiesKeys.RoomRoundKey] = GamePerRounds ? "1" : "0"; roomOption[PropiertiesKeys.TeamSelectionKey] = AutoTeamSelection ? "1" : "0";
string[] properties= new string[5];
properties[0] = PropiertiesKeys.TimeRoomKey;
properties[1] = PropiertiesKeys.GameModeKey;
properties[2] = PropiertiesKeys.SceneNameKey;
properties[3] = PropiertiesKeys.RoomRoundKey;
properties[4] = PropiertiesKeys.TeamSelectionKey;
PhotonNetwork.CreateRoom(hostName, new RoomOptions() { maxPlayers = maxPlayers[players], isVisible = true,isOpen = true,
customRoomProperties = roomOption,
cleanupCacheOnLeave = true,
customRoomPropertiesForLobby = properties
}, null);
}
Your answer
![](https://koobas.hobune.stream/wayback/20220612052448im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How do I make my player move automatically with basic mobile controls like swipe left/right to turn 0 Answers
I have problems with Enemy and Player scripts. 0 Answers
Resources.GetBuiltinResource extension check up 1 Answer
Is it possible to make an Okami Brush mechanic in Unity Engine? 0 Answers
How to reference script in unity (C#) ? 0 Answers