UGameplayStatics::SpawnSoundAttached': none of the 2 overloads could convert all the argument types

ok I have this issue with SpawnSoundAttached

error
UGameplayStatics::SpawnSoundAttached’: none of the 2 overloads could convert all the argument types

code UGameplayStatics::SpawnSoundAttached(SoundToPlay, MyPawn->GetRootComponent());

UGameplayStatics::SpawnSoundAttached(SoundToPlay, MyPawn->GetRootComponent());

My pawn = my char

could you ever solve this? In Shooter Example its made exactly like that and it worked before in my project but now it throws C2665 error in vs.

You should really make a new post for this, with the code you’re attempting to use, and the error message you are experiencing.