Quantcast
Channel: Questions in topic: "issue"
Viewing all articles
Browse latest Browse all 827

Trouble with the Switch Function

$
0
0
Hello Community, I am have trouble with this switch code. I receive this error message when I try compiling. I am trying to tell it to switch to certain methods depending on the circumstance in the game. This is suppose to be a very simple Tic Tac Toe game using only the GUI system. I have highlighted the code that I am have trouble with. Any help would be greatly appreciated. Thank you! error CS0151: A switch expression of type `GameState' cannot be converted to an integral type, bool, char, string, enum or nullable type ![alt text][1] ![alt text][2] [1]: /storage/temp/91771-tictactoe-issue.jpg [2]: /storage/temp/91772-tictactoe-issue02.jpg

Viewing all articles
Browse latest Browse all 827

Trending Articles