It’s been a long time since you asked the question, but if anyone still has that question, you can consult the answer.
First, you have to keep in mind that to create a room in Photon you need to be connected in the Lobby. If this has been done, you will then need to run the Photonnetwork.Createroom method().
The error you get is because the method does not have a constructor that accepts your instantiation without method. And in fact, it does not need 4 arguments, you can create with only one: the name of the room
Ex: Photonnetwork.Createroom("minha_sala");
Remembering that it automatically connects to the room when you create it. To find out if everything went well, you can use this method:
void OnJoinedRoom(){
Debug.Log("Entrei na sala com sucesso!");
}
If you still have doubts, take a look at this video that covers the entire lobby:
https://www.youtube.com/watch?v=VJg24zvd_8o
I hope I helped. Hugs.
Show your code from
CreateRoom
, is just [Dit] the question to add that. Looking this article I see that the function takes 3 arguments (but C# is not my thing...)– brasofilo
I’ll see if it works
– Gabriel Martins