I am having a problem can anybody help me solve it?

After I added the else statement

else {
        
        if (Input.Len() != HiddenWord.Len())
        {
            PrintLine(TEXT("The Hidden Word is 4 charchters long, try again"));
        }

        PrintLine(TEXT("You have lost!")); // If guess is wrong
    }

I went on and compiled it in the unreal engine and then I had this problem, whenever I play the game and enter the wrong word it first displays this on the screen.

And then when I press enter it displays this

Requesting if anybody could help me to display the second pic instead of the first one.
This is my code

1 Like

I found out the problem. My code is actually right. If the answer is wrong and has less or more than 4 letters it displays the second pic but if the answer is right with 4 letters it will display the first pic

1 Like

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

Privacy & Terms