I trying to use dbInput() the give the user a choice on what level to play at the start of my game. So far I have this but whatever I type in I get "incorrect input". Anybody know why?
char *level_choice;
dbCLS();
dbInk ( dbRGB(0,175,0), dbRGB(0,0,0) );
dbColorBackdrop(dbRGB(68,133,157));
dbText(5,5,"which level do you want to load? ");
dbSync();
dbSetCursor(270,5);
level_choice=dbInput();
if (level_choice=="one")
{
dbText(5,45,"loading level one...");
level=1;
makeLevel();
makePlayer();
makeTarget();
game=true;
}
else
{
dbText(5,25,"incorrect input");
}