[Closed]Help with PhotonNetwork.playerList

I try to make a scoreboeard in my Game, i need the List of Players in my Room for my GUI.
I tried

foreach(Player pl in PhotonNetwork.playerList){

		}

But it gives me this error :The type or namespace name `Player’ could not be found. Are you missing a using directive or an assembly reference?

What i am sopused to choose instead of Player.
Please excuse my English.

Try using the below instead

foreach(PhotonPlayer pl in PhotonNetwork.playerList)
{
    //Do Something
}

Hope this helps,

Cheers,

Z

if anyone else happens across this a use example could include placing the above in OnGUI and change //do something to the following.

GUILayout.Box(pl.name);