PhotonNetwork.CurrentRoom is null. You don't have to call LeaveRoom() when you're not in one. State:
Options
Hussien
✭
Hi guys i have those 2 errors when try to create or join room with photon
PhotonNetwork.CurrentRoom is null. You don't have to call LeaveRoom() when you're not in one. State: ConnectedToMaster
Operation LeaveRoom (254) not allowed on current server (MasterServer)
https://ibb.co/FKTbG7n
PhotonNetwork.CurrentRoom is null. You don't have to call LeaveRoom() when you're not in one. State: ConnectedToMaster
Operation LeaveRoom (254) not allowed on current server (MasterServer)
https://ibb.co/FKTbG7n
0
Comments
-
Hi @Hussien,
After you've connected to MasterClient you have to join or create a room first using one of thes methods:
PhotonNetwork.JoinRoom()
PhotonNetwork.JoinRandomRoom()
PhotonNetwork.CreateRoom()
PhotonNetwork.JoinOrCreateRoom()
PhotonNetwork.RejoinRoom()
and then wait for the OnJoinedRoom() callback to ensure that it was successful. I think you're trying to leave the room without being in it.1