Photon Unity Network

Hello,friends! i have a small trouble.This is my script:

if(GUILayout.Button("Join")){
PhotonNetwork.JoinRoom(room.name);
Application.LoadLevel(room.customProperties["map"].ToString());	
PhotonNetwork.playerName = playerName;
   connectingToRoom = true;
					      	}

I’m trying to connect to the room and go to the scene.At the entrance, the player’s name is blank. Tell me, what’s the problem?
P.S. Sorry my English.

Hehe. You have to tell us what the problem is?!
If it’s about the name: Set it before you join the room and it will be passed on to anyone in the room.