Assets\CustomNetworkManager.cs(13,26): error CS0115: 'CustomNetworkManager.OnServerAddPlayer(Network

Can anyone help me with this problem im having?

Here’s the script:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Mirror;
using UnityEngine.SceneManagement;
using Steamworks;

public class CustomNetworkManager : NetworkManager
{
[SerializeField]private PlayerObjectController GamePlayerPrefab;
public List GamePlayers { get; } = new List();

public override void OnServerAddPlayer(NetworkConnection conn)
{
if(SceneManager.GetActiveScene().name == “Lobby”)
{
PlayerObjectController GamePlayerInstance = Instantiate(GamePlayerPrefab);

GamePlayerInstance.ConnectionID = conn.connectionId;
GamePlayerInstance.PlayerIdNumber = GamePlayers.Count + 1;
GamePlayerInstance.PlayerSteamID = (ulong)SteamMatchmaking.GetLobbyMemberByIndex((CSteamID)SteamLobby.Instance.CurrentLobbyID, GamePlayers.Count);

NetworkServer.AddPlayerForConnection(conn, GamePlayerInstance.gameObject);
}
}
}

Please use code tags.
The error message you get tells you a lot about what’s wrong actually, and also where (“13,26” reads as: line 13, character 26). Remove the override.