How to create an RPC call for Photon using UnityScript?

[PunRPC] is giving me the error, it says it’s expecting a semicolon at the end which makes no sense.

function Update
{
   //A bunch of stuff, mainly I just want to show that [PunRPC] is NOT inside the Update function
}

[PunRPC]
function ChangeTeamLeft()
{
	teamInt -= 1;
}

If you are using UnityScript, instead of [PunRPC], you use @PunRPC. This is because [PunRPC] is used mainly in C#, while @PunRPC is made specifically for UnityScript. I hope this helps.