Cant figure out what is wrong with my code

FBullCowCount BullCowCount = BCGame.SubmitGuess(Guess); Says Guess in undefined.
BCGAME.zip (2.4 KB)
There is my whole code if needed.

I believe that in FBullCowCount BullCowCount = BCGame.SubmitGuess(Guess);
in main.cpp, is looking for Guess to fill in the parameter, but Guess does not exist within the playgame function.

you could try moving it into your GetGuess() function where Guess does exist, or have GetGuess return guess and then assign the returned value from GetGuess within your PlayGame() function to a new FText string also called Guess.

here is my PlayGame() from my main.cpp

let me know if it helps

Privacy & Terms