photon problem to spawn all player

Options
i have a gameobject and Script to instantiate players
void Start()
{

if (PhotonNetwork.player.GetTeam() == PunTeams.Team.blue)
{
GameObject maiPlayer = PhotonNetwork.Instantiate("Player", new Vector3(-30, 1, 0), Quaternion.identity, 0);

}
else if (PhotonNetwork.player.GetTeam() == PunTeams.Team.red)
{
GameObject maiPlayer = PhotonNetwork.Instantiate("Player", new Vector3(30, 1, 0), Quaternion.identity, 0);

}

}
this works, but the problem is that some player fails to see others. all player have photonView


the error:
Received OnSerialization for view ID 2001. We have no such PhotonView! Ignored this if you're leaving a room. State: Joined
UnityEngine.Debug:LogWarning(Object)
NetworkingPeer:OnSerializeRead(Object[], PhotonPlayer, Int32, Int16) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:4289)
NetworkingPeer:OnEvent(EventData) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:2592)
ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(Byte[])
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
PhotonHandler:Update() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:157)

Comments