Cannot Define RPC Function With Param APawn*

my class is just so simple:

UCLASS()

class MYPROJECT_API AMyPlayerController : public APlayerController
{
 	GENERATED_BODY()
    
    UFUNCTION(Server, Unreliable, WithValidation, NetMulticast)
    void MulticastCameraData(APawn* Pawn);
    void MulticastCameraData_Implementation(APawn* Pawn);
    bool MulticastCameraData_Validate(APawn* Pawn);
};

but, it comes out the error when i try to compile:
Function parameter: ‘Pawn’ cannot be defined in ‘MulticastCameraData’ as it is already defined in scope ‘Controller’ (shadowing is not allowed)

I cann’t understand! Please Help!!

“Pawn” is already defined in APlayerController.

Try renaming your argument “Pawn” to something like “InPawn” and see if that fixes the compiling issue.

^^^, Pawn is already a variable. Also you should delete “Server” in your UFUNCTION definition because you only want “NetMulticast” because the compiler might get confused about whether it’s a multicast or a server rpc.
Read RPCs | Unreal Engine Documentation for more detail on RPCs

thank you guys! that’s really helpful!

i post the answer just for remark the question as RESOLVED!