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.

Newcomers DBPro Corner / Help with text based game

Author
Message
Bagrm
20
Years of Service
User Offline
Joined: 1st Apr 2004
Location:
Posted: 2nd Apr 2004 01:52
Hi, i am working on a text based game. On my compiler at school this code

input ab$
if input=a then
goto death
endif
if input=b then
goto stealth
endif

would have sent the user to a death screen if the input a, and would send the user to the stealth text screen. using darkbasic i just get a syntax error. Please help,
Thanks!
Scouseknight
20
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Bootle, Merseyside, UK
Posted: 2nd Apr 2004 02:03 Edited at: 2nd Apr 2004 02:05
Try it like this



p.s. ignore my attached source - use the snippet instead

Bagrm
20
Years of Service
User Offline
Joined: 1st Apr 2004
Location:
Posted: 2nd Apr 2004 02:12
Thanks!

Login to post a reply

Server time is: 2024-09-22 02:30:04
Your offset time is: 2024-09-22 02:30:04