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 / [LOCKED] How do I make an error code

Author
Message
Ed222
17
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 7th Nov 2007 01:01
How to I make a error code in my texted based game e.g.

which one will you buy
1 rayman
2 metroid prime

I want it so if they enter a number not listed here it will print
"Error not a command"

heres my game code
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK

Login to post a reply

Server time is: 2025-05-31 20:33:45
Your offset time is: 2025-05-31 20:33:45