How to get this spawn actor function work?

334686-

please help me i am stuck at this problem, this spawnactor function is not working its showin :
Error (active) E0289 no instance of constructor “FTransform::FTransform” matches the argument list project743 E:\UnrealProjects\project743\Source\project743\Private\MyGameModeBase.cpp

There is no constructor for FTransform that takes 3 floats. Try:

FTransform SpawnLocation(FVector(0.0f, 0.0f, 0.0f));

You’re missing an argument to SpawnActor. You can see all calling options here: SpawnActor | Unreal Engine Documentation

For the overload that takes a transform, you’re still missing the spawn parameters:

FTransform SpawnTransform();
FActorSpawnParameters SpawnParams;
AActor* MyActor = GetWorld()->SpawnActor<AActor>(AActor::StaticClass(), &SpawnTransform, SpawnParams);

There’s no name parameter. Copy and paste the code I posted.

Even After Removing Initialization of “FTransform” I get an Error!

Still its not working…