Help! Errors are killing my noob mind!!!

I am getting a few Errors… what do they mean?
My Code:

using Photon.Pun;
using Photon.Realtime
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CustemMatchmaking : MonoBehaviourPunCallbacks
{
    [SerializeField]
    private GameObject lobbyConnectButton;
    [SerializeField]
    private GameObject lobbyPanel;
    [SerializeField]
    private GameObject mainPanel;
    [SerializeField]
    public InputField playerNameInput;

    private    string roomName;
    private int roomSize;

    private List<RoomInfo> roomListings;
    [SerializeField]
    public Transform roomsContainer;
    [SerializeField]
    private GameObject roomListingPrefab;

    public override void OnConnectedToMaster()
    {
    PhotonNetwork.AutomaticallySyncScene = true;
    lobbyConnectButton.SetActive(true);
    roomListings = new List<RoomInfo>();

    if(PlayerPrefs.Haskey("Nickname"))
    {
        if (PlayerPrefs.GetString("NickName") == "")
        {
            PhotonNetwork.NickName = "Player " + Random.Range(0, 1000);
        }
        else
        {
            PhotonNetwork.NickName = PlayerPrefs.GetString("NickName");
        }
    }
    else
    {
        PhotonNetwork.NickName = "Player" + Random.Range(0, 1000);
    }
    playerNameInput.text = PhotonNetwork.NickName;
    }


    public void JoinLobbyOnClick()
    {
        mainPanel.SetActive(false);
        lobbyPanel.SetActive(true);
        PhotonNetwork.JoinLoby();
    }
   
    public override void OnRoomListUpdate(List<RoomInfo> roomList)
    {
        int tempIndex;
        foreach (RooomInfo room in roomList)
        {
            if (roomListings != null)
            {
                tempIndex = roomListings.FindIndex(ByName(room.Name));
            }
            else
            {
                tempIndex = -1;
            }   
            if (tempIndex != -1)
            {
                roomListings.RemoveAt(tempIndex);
                Destroy(roomsContainer.GetChid((tempIndex).gameObject);
            }       
            if (room.PlayerCount > 0)
            {
                roomListings.Add(room);
                ListRoom(room);
            }

        }

    }

    static System.Predicate<RoomInfo> ByName(string name)
    {
        return delegate (RoomInfo room)
        {
            return room.Name == name;
        };
    }

    void ListRoom(RoomInfo room)
    {
        if (room.IsOpen && room.IsVisible)
        {
            GameObject tempListing = Instantiate(roomListingPrefab, roomsContainer);
            RoomButton tempButton = tempListing.GetComponent<RoomButton>();
            tempButton.SetRoom(room.Name, room.MaxPlayers, room.PlayerCount);
        }
    }

    public void OnRoomNameChanged(string nameIn)
    {
        roomName = nameIn;
    }
    public void OnRoomSizeChanged(string sizeIn)
    {
        roomSize = int.Parse(sizeIn);
    }

    public  void CreateRoom()
    {
        Debug.Log("Creating room now")
        RoomOptions roomOps = new RoomOptions() { IsVisible = true, IsOpen = true, MaxPlayers = (byte)roomSize };
        PhotonNetwork.CreateRoom(roomName, roomOps);
    }
    public override void OnCreateRoomFailed(short returnCode, string message)
    {
        Debug.Log("Failed to create room. Choose other name or wait a bit then try again.");
    }
    public void MatchmakingCancel()
    {
        mainPanel.SetActive(true);
        lobbyPanel.SetActive(false);
        PhotonNetwork.LeaveLobby()
    }
   




}

6870854--801800--Bildschirmfoto 2021-02-24 um 08.33.49.png

The errors are in the attached file…

As UnitMC mentioned, if you check closely the errors are in the attached file and Unity also telling you the problems.
For example the first error line is Assets/CustomLobbyController.cs(2,22); error CS10002: ; expected

It means there is an error in the CustomLobbyController.cs file on the 2. row and 22. character. And the error code is CS10002, which is a ‘;’ was left at the end of that line.

If it is not a simple problem try to search for the error code, in this case for CS10002.

But for now, here is a line from your code and a fix for it. Check the other errors like this and you will understand that there are missing characters.

using Photon.Realtime

// It will compile
using Photon.Realtime;

One note for this, maybe the position (2,22) is not precise and you cannot see any error on that specific character, then it worth to check before / after a few characters and before / after one line, most of the errors are close to that position that the compiler mentions to you.

THANK YOU!!

Errors mean the world! Errors are your friend! The compiler loves you and knows you need its help to make great code.

How to understand compiler and other errors and even fix them yourself:

https://discussions.unity.com/t/824586/8