Get gibberish trying to log a FString

FString TempString = TEXT(“DEBUG”);
UE_LOG(LogTemp, Warning, TEXT(“Character: workbench id:%s”),&TempString);

and i get this in PIE:

![190232-$1qys48)d8a48jmamy4d6m.png|426x24

so how should i work this out?

Hey Wheatley_41,

The reason is because you’re passing by reference, so it’s passing in the memory address instead of the actual value of the TempString variable. What you need to do is this instead:

 UE_LOG(LogTemp, Warning, TEXT("Character: workbench id:%s"), *TempString);

Need to use a * instead of a &

Have a great day

thanks! that works