title: Why Calling An RPC Function With An Integer Parameter Gives Error? -Photon Unity
body: <p>I am Using Photon 2 And I Have Public Rpc Function In One Of My Script, The Function Has An Integer Parameter, This Is How My Function Exactly Looks Like.
  <br>
  <br></p>
  <pre><code>    [PunRPC]
      public void TakeDamage(int amount)
      { 
          playerHealth -= amount;
          if (playerHealth &lt;= 0)
          {
              Debug.Log(&quot;Player Died&quot;);        
          }
      }
  </code></pre>
  <p>We In Above Code The TakeDamage Function Takes An Integer Called amount. So When I am Calling This Function From Other Scripts, And When The Other scripts Actually Call The Function It Gives A Warning.<br></p>
  <h2>How I am Calling The Fucntion</h2>
  <pre><code>PV.RPC(&quot;currentTarget.TakeDamage&quot;,  RpcTarget.AllBuffered, damage);
  </code></pre>
  <p>The PV is a public PhotonView.</p>
  <br>
  <H2>The Warning</H2>
  <pre><code>RPC method 'currentTarget.TakeDamage(Int32)' not found on object with PhotonView 1003. Implement as non-static. Apply [PunRPC]. Components on children are not found.
  </code></pre>