Object can't find other objects that spawned through photon.instantiate

I’m trying to make a multiplayer cardgame

I’m using photon network to try and do so

I’ve got a gameobject called gamecontroller which has a script on it that has functions to start the game. When both clients join i want to be able to call these functions to make the game run (draw cards ecetera)

This works, but when one of my players joins i give them a game object with a camera and a playerscript

GameObject playerSpawned = (GameObject)PhotonNetwork.Instantiate (playername, new Vector3 (0, 0, 0), new Quaternion (0, 0, 0, 0), 0);

This works

Next i want my gamecontroller to know a new player has joined, so i tell him the first time someone joins that that player should be considered player 1:

if (seatnumber == 1) {

			gamecontrollscript.player1 = playerSpawned;


seatnumber is the playercount in the lobby by the way

this works just fine

Now when the second player joins i try to do the same thing with else if (seatnumber ==2)

this just does nothing???

any suggestions?

Still can’t find out

This awnser is still too short

Plz lord monty python save me