Failed to find a blueprint implementable while calling in c++

I get this error in this piece of code right here:

void AFPSGameMode::EndGame(APawn* Instigator, bool IsSuccess)
{
	if(Instigator)
	{
		Instigator->DisableInput(nullptr);

		APlayerController* Controller = Cast<APlayerController>(Instigator->GetController());
		SetSpectateView(Controller);
		
	}
	if(IsSuccess)
	{
		OnGameFinished(Instigator, true);
	}
	else OnGameFinished(Instigator, false);
}

this is because I want to have blueprint functionality and the bp implementable function is not a deleted one nor renamed