error CS1001: Identifier expected

I have a little problem with my code
Im new to unity and Im following tutorial from 2016 so something could changed
here is the code

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MenedzerPolaczen : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
       
    }

    // Update is called once per frame
    void Update()
    {
      
    }

    public void Polacz() {
       
        PhotonNetwork.ConnectUsingSettings("A_1.0");
    }

    void OnGUI() {

        GUI.Label(new Rect(0,0,100,20),PhotonNetwork.);
    }




}

Your problem is your “PhotonNetwork.” bit. The dot means to access something within something else, like “GUI.Label” where you are getting the Label function of the GUI class. You should have PhotonNetwork.something there, I don’t know what, but I assume the tutorial would say that. It looks like you missed the end of line 26 on the tutorial.

The tutorial is outdated, though it’s not the reason you’re having this problem. IMGUI (the GUI system that’s based on the OnGUI function) is obsolete. It’ll work, and if you’re just trying to learn to use Photon networking it’s okay for learning, but it performs badly and doesn’t have a lot of capabilities. The new UI system (sometimes called “UnityUI” or “UGUI”) (some tutorials here) works in a different way and is a lot better. (This system came out in 2014ish so that tutorial was already a bit outdated in 2016, even)

Thanks so much