Question: PrintLine

Now I am at 3.45 min in the Video.
Now i read the following Syntax

PrintLine(FString::Printf(TEXT("Hello! %s"), HiddenWord));

and he said we need to to this to work with PrintLine and Variables etc…

but in the previous Video i did this:

if (Input.Len() <= HiddenWord.Len())
        {
            

            PrintLine(TEXT("You have not given enough characters! The word has %i characters"), HiddenWord.Len() );
        }

and this also works. That means we don’t need the Printf statement and so on …
So why do i need this? (FString::Printf(TEXT…)
I mean my Version is shorter and cleaner and works also …

Solved, ok my bad… i got already the answer … from the video…

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms