Need help with this. My countOfPlayers is not increasing even though new player enters.
PhotonNetwork.countOfPlayers is only a statistic value about how many players are currently online. You get this on the Master Server, not on the Game Server (while in a room).
In a room, you can use PhotonNetwork.playerList.Length or PhotonNetwork.room.playerCount.
Thanks allot. I have another question. I am creating a online Trading card game. So i am limiting the max player to 2. is my code right already to not let any other player to join the room for 2 players?
You can set maxPlayers in the RoomOptions parameter of CreateRoom().
Sir tobiass can i get your attention in this thread? i see you always answers question about photon networking.
i am hoping you can help me with this one. my another question is in this link. thank you very much ![]()