0

Why does my c++ game gets this bug?

So guys I created this c++ game and this game kinda have a bug here so when ever I attack or heal it should the unknown keyword and gives me 23 hp damage which I had set for using other keywords but it happens all the time when I enter my attack type. Please help me with this 🙏😭🙏 I promise to get those people featured who will help me by fixing this bug. :'( Here it is: https://code.sololearn.com/cczsWlo0yD29/?ref=app

23rd Jan 2020, 4:13 PM
Kirui-kun
Kirui-kun - avatar
3 ответов
+ 4
I am not sure if this is what you want. https://code.sololearn.com/ce3PaagrXSSn/?ref=app
23rd Jan 2020, 4:25 PM
Kevin ★
+ 3
Your code said: if(you lost){ "you lost" }else{ "unknown keyword" }
23rd Jan 2020, 4:45 PM
Kevin ★
+ 2
Thanks for helping me out with this and keeping it private Kevin I will get you featured but what did I do wrong here? I wanna know?
23rd Jan 2020, 4:29 PM
Kirui-kun
Kirui-kun - avatar