RPC problems, PhotonView

I am trying to use RPC's to send messages, moves, etc. in my game. I have a network script object in my game with a photon view component. Also worth knowing is I am using PUN classic because I am more comfortable with it. My code looks like this:
PhotonView photonView = PhotonView.Get(this);
photonView.viewID = PhotonNetwork.AllocateViewID();
string message = messageInputField.text;
photonView.RPC("chatMessage", PhotonTargets.Others, message);

I get an error that says:
Received RPC "chatMessage" for viewID 1001 but this PhotonView does not exist! Was remote PV. Owner called. By: 1 Maybe GO was destroyed but RPC not cleaned up.

Would greatly appreciate any help. Thanks.
Sign In or Register to comment.