Problem with "return EGuessStatus::OK;"

return EGuessStatus::OK; is not a class for some reason
if i copy->past it in the midle of “EGuessStatus FBullCowGame::CheckGuessValidity(FString Guess) const” Section it becomes a class, but then i recive an aror C2181 (illigal ELCE without matching IF)

Solved!!!
The problem was in the line 41
else if (Guess.length() != GetHiddenWordLength()); -no need for “;” in the end!
else if (Guess.length() != GetHiddenWordLength()) -the right way

Privacy & Terms