[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2006-05-15T20:12:35-05:00 http://www.petesqbsite.com/phpBB3/app.php/feed/topic/1464 2006-05-15T20:12:35-05:00 2006-05-15T20:12:35-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=11613#p11613 <![CDATA[VERY Simple IF Question]]>
Wow, I positively love that moneo. Can I use it? hehe...
Only if you leave me a silver bullet next time you help me out. :wink:

Statistics: Posted by moneo — Mon May 15, 2006 8:12 pm


]]>
2006-05-14T20:48:04-05:00 2006-05-14T20:48:04-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=11600#p11600 <![CDATA[VERY Simple IF Question]]> Statistics: Posted by MystikShadows — Sun May 14, 2006 8:48 pm


]]>
2006-05-14T20:45:59-05:00 2006-05-14T20:45:59-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=11599#p11599 <![CDATA[VERY Simple IF Question]]> Statistics: Posted by moneo — Sun May 14, 2006 8:45 pm


]]>
2006-05-14T19:58:00-05:00 2006-05-14T19:58:00-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=11595#p11595 <![CDATA[VERY Simple IF Question]]> It worked great... I think, I can't guess the number to test it :P.

Statistics: Posted by myuusmeow — Sun May 14, 2006 7:58 pm


]]>
2006-05-14T19:50:19-05:00 2006-05-14T19:50:19-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=11594#p11594 <![CDATA[VERY Simple IF Question]]>
you were very close

... = number THEN PRINT "You won!" END

should be

... = number THEN PRINT "You won!": END

not the colon before your END statement..that should work for you

Statistics: Posted by MystikShadows — Sun May 14, 2006 7:50 pm


]]>
2006-05-14T19:23:11-05:00 2006-05-14T19:23:11-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=11593#p11593 <![CDATA[VERY Simple IF Question]]>

Code:

CLSPRINT "Guess the Random Number"PRINT "Hint: It is less than 11"PRINT "Only 3 chances!"RANDOMIZE TIMERnumber = INT(RND * 10)INPUT "1st chance?", number1IF number1 = number THEN PRINT "You won!" ELSE PRINT "Too bad."INPUT "2nd chance!", number2IF number2 = number THEN PRINT "You won!" ELSE PRINT "Oh no!"INPUT "3rd, and last chance!!!", number3IF number3 = number THEN PRINT "You won!" ELSE PRINT "Too bad, it was "; number; "."
In

Code:

... = number THEN PRINT "You won"
, I want to put an END in there, but, I can't.
I've tried

Code:

... = number THEN PRINT "You won!" END
and

Code:

... = number THEN PRINT "You won!" AND END
.

Otherwise I got it right, and it keeps going.

Statistics: Posted by myuusmeow — Sun May 14, 2006 7:23 pm


]]>