Array index is out of range ?
Dknighter
✭✭
Hello, I am getting the error "Array index is out of range." for this line of code and I have no idea why, any help would be great.
if((bool)PhotonNetwork.playerList[1].customProperties["Ready"] == false)
0
Best Answer
-
Ok, once again answering my own question.
I didn't figure out why this was happening but I used a work around.foreach(PhotonPlayer player in PhotonNetwork.playerList) { if(!(bool)player.customProperties["Ready"]) { Counter++; } }
5
Answers
-
Ok, once again answering my own question.
I didn't figure out why this was happening but I used a work around.foreach(PhotonPlayer player in PhotonNetwork.playerList) { if(!(bool)player.customProperties["Ready"]) { Counter++; } }
5