JoinOrCreateRoom failed. Client is not on Master Server or not yet ready to call operations. Wait for callback: OnJoinedLobby or OnConnectedToMaster.

void OnPhotonCreateRoomFailed()
{
Debug.Log(“Can’t join random room!”);
}

Further to check this error i write the code but it’s not working.

PhotonNetwork.LoadLevel(level);

i used this to sync the info between level of death its not working also.

i found on net but where to enter this code.

Where are you calling it from? The answer is right in the error. Call it from OnJoinedLobby

i can't figure out when happens: but if my player dies[Scene1] and goto[Scene2]and if i click on TryAgain[Scene2] imediatly it loads the [scene1] and every thing works fine but when i late i gave me the error i mentioned above. And Yes One thing is to be noted that when i imediately cliced on TryAgain the massages panel show me all process but when i wait some time and then click on TryAgain it show only joined lobby and OnClick joinOrCreate room it give that error.

Before join to new room check PhotonNetwork.inRoom value, probable you still in previous room.

1 Answer

1

well you can use OnPhotonRandomJoinFailed (); if that doesnt work its not having to do with a room not being there if it is OnPhotonRandomJoinFailed (); will then create its own room if not one is present at that time