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 / text rpg help plz

Author
Message
Mnemonix
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 12th Jan 2003 04:08
Alright, i just started my first text based rpg. The editor is giving me some daft error message over this little bit of code. Can any1 see any problems with it


If you forget one little thing i shall have you shaved sterilised and destroyed: Jeffrey Goines
Epidemicz
22
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 12th Jan 2003 04:22
do

input command
if command= "look" then print room(currentroom).description

command = ""
loop


should be...

do

input command$
if command$= "look" then print room(currentroom).description

command$ = ""
loop


I think you just forgot to add the $ and the end of command

I am the very disease you pretend to be.
Mnemonix
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 12th Jan 2003 04:25
I am ashamed to be a programmer after making the most ridiculous mistake in history. I musta thought i was in vb6. Anyhow, thnx for the code. It worked perfect after that. Arent you sick of morons like me bantering u for help wen it is a simple solution

If you forget one little thing i shall have you shaved sterilised and destroyed: Jeffrey Goines
Epidemicz
22
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 12th Jan 2003 04:29
Haha, its no problem man, I'm usually the one asking questions, glad to help. Good luck with the game

I am the very disease you pretend to be.

Login to post a reply

Server time is: 2024-11-23 21:56:28
Your offset time is: 2024-11-23 21:56:28