Does anyone know what the compiler error "bad or missing expression in token:" means in general?

I'm getting that error in 2 places.

i get "bad or missing expression in token: Pickup in 'If' " for
if (Pickup(Other) != none && Pickup(Other).bDropped)
Other.SetPhysics(PHYS_Falling);

and i also get

"bad or missing expression in token: RemoteRole in Replication Condition

replication
{
if (RemoteRole == ROLE_AutonomousProxy )
ClientSetPawnRotation;
}

Does anyone have any idea about these errors and what they mean?