Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / input problem...... :-( NEED HELP!!!

Author
Message
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 8th Jun 2004 13:05
i need help to my codes..
[/code]input "What is you favorit color? : ", a$
print a$
input "do you like to make games? : ", a$
print a$
print "is you answers right? press y for yes or n for no"[code]

i want to do so if i press the y key then it will stop and exit the program. and if i press n key then it will start the program over again.. HOW DO I DO THAT!! !
someone plaese help me!!
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 8th Jun 2004 13:06
ups there is the codes....
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 8th Jun 2004 13:07
click on sourch
DaedalusX
21
Years of Service
User Offline
Joined: 10th Mar 2004
Location:
Posted: 8th Jun 2004 14:30
u cant really have two things assigned to a$ it can cause probs. i edited ur code this worked for me.
DaedalusX
21
Years of Service
User Offline
Joined: 10th Mar 2004
Location:
Posted: 8th Jun 2004 14:32
dont frget to delete the `key for N' bit that was just to show u
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 10th Jun 2004 19:32
Thanks for the help....

Login to post a reply

Server time is: 2025-05-25 04:42:28
Your offset time is: 2025-05-25 04:42:28