UNITY ERROR: Scoreboard.cs(39,35): error CS0029: Cannot implicitly convert type

Scoreboard.cs(39,35): error CS0029: Cannot implicitly convert type ExitGames.Client.Photon.Hashtable’ toSystem.Collections.Hashtable’

Code : using UnityEngine; using System.Collections; using System.Collections.Generic;

public class Scoreboard : MonoBehaviour {

public GUISkin guiSkin;
public Font titleFont;
public Texture2D background;
public bool display = false;

class Line {
public string name;
public int kills;
public int assists;
public int deaths;

public Line(string n, int k, int a, int d) {
   name = n;
   kills = k;
   assists = a;
   deaths = d;
}

}

void Update() {
if(Input.GetKeyDown(KeyCode.Tab)) {
display = !display;
}
}

void OnGUI() {
if(!display || !PhotonNetwork.connected)
return;

List<Line> lines = new List<Line>();

foreach (PhotonPlayer player in PhotonNetwork.playerList) {
   Hashtable props = player.customProperties;
   Line l = new Line(player.name, (int)props["Kills"], (int)props["Assists"], (int)props["Deaths"]);
   lines.Add(l);
}

// TODO: Sort.

GUI.skin = guiSkin;
GUIStyle rightTitle = new GUIStyle(guiSkin.GetStyle("label"));
rightTitle.alignment = TextAnchor.MiddleRight;
rightTitle.font = titleFont;
GUIStyle leftTitle = new GUIStyle(guiSkin.GetStyle("label"));
leftTitle.font = titleFont;

Rect win = new Rect(0, Screen.height/2-200, 320, 480);
GUI.DrawTexture(win, background);
win = new Rect(10, Screen.height/2-200, 300, 480);

GUILayout.BeginArea( win );
GUILayout.BeginVertical();

GUILayout.BeginHorizontal();
GUILayout.Label("Scoreboard", leftTitle);

string minutes = (Mathf.FloorToInt(RoundManager.Instance.roundDurationLeft)/60).ToString();
string seconds = (Mathf.FloorToInt(RoundManager.Instance.roundDurationLeft)%60).ToString("D2");
GUILayout.Label( minutes + ":" + seconds , rightTitle);
GUILayout.EndHorizontal();

GUILayout.BeginHorizontal();
GUILayout.Label("Name",    GUILayout.Width(135));
GUILayout.Label("Kills",   GUILayout.Width(55));
GUILayout.Label("Deaths",  GUILayout.Width(55));
GUILayout.Label("Assists",     GUILayout.Width(55));
GUILayout.EndHorizontal();

foreach(Line l in lines) {
   GUILayout.BeginHorizontal();
   GUILayout.Label(l.name,           GUILayout.Width(150));
   GUILayout.Label(l.kills.ToString(),   GUILayout.Width(55));
   GUILayout.Label(l.deaths.ToString(),  GUILayout.Width(55));
   GUILayout.Label(l.assists.ToString(),     GUILayout.Width(55));
   GUILayout.EndHorizontal();
}

GUILayout.FlexibleSpace();
GUILayout.EndVertical();
GUILayout.EndArea();

}
}

In this line you declare a variable of type System.Collections.Hashtable (the first part is implied), then try to assign a value of type ExitGames.Client.Photon.Hashtable:

Hashtable props = player.customProperties;

Two options are either to be more explicit i.e.:

ExitGames.Client.Photon.Hashtable props = player.customProperties;

Or if you are only going to use the Photon Hashtable in this script you could add a using directive:

using Hashtable = ExitGames.Client.Photon.Hashtable;