At the moment I'm working on my second script. I want to use the code box for something. At this point I'm pulling my hair out wondering what I'm doing wrong.
Heres a general idea of what is happening.
Pretty much what happens is i have this pop up on my screen.Code:Menu->AddItem(0, "Enter hello", 1, 1); if(Code == "hello") { plr->BroadcastMessage("You've won"); } else { plr->BroadcastMessage("You've failed"); plr->BroadcastMessage("%s, is the code you typed in.", Code); }
You've failed
hello, is the code you typed in.
So... the code says i typed in hello, but hello != hello?
Any help would be awesome.