Hello There!
I’m having really hard times trying to figure out this… and i just tried like all day and still i’m not able to find out what’s the problem, maybe you guys can give me a light, i really appreciate it!
i’m trying to send a NetworkViewID on a RPC call i’m doing this…
networkView.RPC("setHP", RPCMode.All, NetworkViewID);
and then i do this:
@RPC
function setHP(MyID : String)
{
seems to compile ok, but in the run time, i get this error:
Expected 'System.String' but got 'System.MonoType'
UnityEngine.NetworkView:RPC(String, RPCMode, Object[])
it’s a network game and what i’m trying to do is send the player’s ID to everyone so i can handle it after, but i cant get it on String or Interger…
Do you guys have an idea what can be wrong?
Thank you so much in advance!
Best regards,
-Brian.