PUN - Issues adding kill to killer

Hello,
I ran into trouble adding a point to the killer :slight_smile:
When my ID and the send one is correct it always says that it’s not my photonView. Without the photonView.ismine thing, m_kills is still set to 0.

I hope you guys can help me or you know a better way to set the kill score c:

That’s my Player script:

    [RPC]
    void AddKill(string killer, int id){
            if (string.Equals (id, netID) && this.photonView.isMine) {
    
                                this.meep ();
                            
                                print ("It was me q.q!" + m_kills);
            Debug.Log ("Called ! " + killer + id + " me: " + PlayerName + netID);
        
                        } else {
                                print ("It was not me");
            Debug.Log ("Called ! " + killer + id + " me: " + PlayerName + netID);
        }

            
    }

    [RPC]
    void GotKilled(string killer, int id)
    {
        Killer = killer;
        PlayerName = PlayerPrefs.GetString ("PlayerName");
        m_deaths ++;
        photonView.RPC ("AddKill", PhotonTargets.Others, killer, id);
        net.GetComponent<PhotonView>().RPC("ServerConsole", PhotonTargets.All, PlayerName + " were killed by " + killer + " ID " + id);
        Debug.Log ("Killer " + killer + " Killer ID " + id + " my ID " + netID + " my Name " + PlayerName);
        Ragdoll();

    }

why not using custom property in photon?
new property kill = custom property kill +1;
custom property kill = new property kill;
you must do the logic only if photonview.ismine

Thanks I got it fixed so far :slight_smile:
Now I’m dying by a new issue :stuck_out_tongue:
The joined player can’t score a kill except after respawning on the running session :confused: