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 / "Print" problem

Author
Message
Panda games
16
Years of Service
User Offline
Joined: 30th Sep 2008
Location:
Posted: 25th Mar 2009 03:16 Edited at: 25th Mar 2009 03:18
This is my new program in DBP



My problem is that when i run it Question1$ replaces all other print code.

Can somebody tell me what i did wrong.

This is not my full program but the rest of it works fine.

http://www.pandagames.org
the destroyer
15
Years of Service
User Offline
Joined: 24th Dec 2008
Location:
Posted: 25th Mar 2009 08:43
you did not declare the variables
for ex you did not declare question1$, the program will then not print anything, you have to declare variables like so

and so go on
Pillarofire
20
Years of Service
User Offline
Joined: 31st Dec 2003
Location: Good Question, <looks around.>
Posted: 25th Mar 2009 08:54
Im not anywhere I can test this, but try putting an ENDIF after the INPUT A2$ line.
the destroyer
15
Years of Service
User Offline
Joined: 24th Dec 2008
Location:
Posted: 25th Mar 2009 17:43 Edited at: 25th Mar 2009 17:44
Yes I frogot to tell him to put an endif after the if-condition, look at the example above



OR



OR

Panda games
16
Years of Service
User Offline
Joined: 30th Sep 2008
Location:
Posted: 26th Mar 2009 03:07
the destroyer i put endifs like you said and it still doesn't work. Also the program lets you easily make games so in the other part of the program you input question1$. Also i'm making it so you can make a Text Adventure game so you can input Question, Wrong Answer, What happens and Right answer. They is five Questions you can make but on the 5th one it prints Question - Wrong answer - Wrong answer - Wrong answer - Wrong answer - Wrong answer - Wrong answer - Wrong answer - Wrong answer

http://www.pandagames.org
the destroyer
15
Years of Service
User Offline
Joined: 24th Dec 2008
Location:
Posted: 26th Mar 2009 08:28 Edited at: 26th Mar 2009 08:29
Look I will give an example that I hope it will help you


And here is a secend example like the one you are trying to do



the code just asks some questions and sees if the input is write then it goes to the next one

Tell me if you do not understand, then I'll explain it to you, but I hope you understand

Login to post a reply

Server time is: 2024-11-24 11:27:35
Your offset time is: 2024-11-24 11:27:35