The name `someVariable' does not exist in the current context

Hello, i’m making a Multi-player game using Photon Networking. I am getting an error that for some reason I cant figure out: The name `someVariable’ does not exist in the current context. Here is the script I am using:

using UnityEngine;
    using System.Collections;
    
    public class SpawnColors : MonoBehaviour {
    	
    
    	void Start () {
    
    		someVariable = gameObject.GetComponent<PhotonView>();
    		if(someVariable.isMine()) {
    		renderer.enabled = true;
    			
    
    		
    		}
    	}
    
    
    }

Thanks for helping. I don’t know why this is happening and I cant figure it out.

Your someVariable isn’t declared before you assign to it. You need to declare it with a type. Change

someVariable = gameObject.GetComponent<PhotonView>();

into

PhotonView someVariable = gameObject.GetComponent<PhotonView>();

http://unity3d.com/learn/tutorials/modules/beginner/scripting/variables-and-functions