Networking Animation problem

What are possible problems which might have occurred if the animation on a gameObject only occurs on one side of the network and not the other?

Say, pressing the space button makes the player do the jump animation. However, in this problem, when Person A presses space, both players will appear to jump on his end, but on Person B's end, none of the players will be jumping at all. Vice versa.

And is there any usual solutions to this?

Thanks.

if(!networkView.isMine){

  GetComponent(PlayerController).enabled = false;
//PlayerController is actually your method for making the player jump

}

if(networkView.isMine){
  GetComponent(PlayerController).enabled = true;
}

The solution is simply :

attach this script to your player prefab or object.