Photon Network RPC

I know you can send an rpc to one game object or photon view. But how would I send a rpc to all players in the room. I use like this.gameObject.GetComponent().RPC(“FunctionCall”, PhotonTargets.All); I tried to use photonView.RPC(“FunctionCall”, PhotonTargets.All); thinking it would call to all photon views in the world but it was giving me an error. Any suggestions?

Whats the error?

It said that it couldn’t find the function call in the photon id 7 ( it’s own photon view). So it’s basically calling it in itself.

Photon targets all, calls everyone including yourself. The error comes from your function name not being correct in your rpc