Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

No overload for method `CreateRoom' takes `6' arguments

$
0
0
Can someone please tell me why the code below throws
No overload for method `CreateRoom' takes `6' arguments
in the inspector?


ExitGames.Client.Photon.Hashtable customRoomPropertiesToSet = new ExitGames.Client.Photon.Hashtable();

customRoomPropertiesToSet.Add("levelName", RetainID.TheMap);
customRoomPropertiesToSet.Add("GetHumans", RetainID.Humans);

customRoomPropertiesToSet.Add("GetBots", RetainID.Bots);

string[] customPropertiesForLobby = new string[2];
customPropertiesForLobby[0] = "levelName";
customPropertiesForLobby[1] = "GetHumans";
customPropertiesForLobby[2] = "GetBots";
PhotonNetwork.CreateRoom(RetainID.NameTheGame, true, true, int.Parse(RetainID.Humans), customRoomPropertiesToSet, customPropertiesForLobby);

Viewing all articles
Browse latest Browse all 15755

Trending Articles