The Dink Network

Reply to Re: Script help- riddles

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
October 30th 2002, 04:05 PM
peasantmb.gif
: Found it

: if (&result == 3);

: {

: say_stop("'0WRONG!", &current_sprite);

: unfreeze(1);

: return;

: }

: See that ; on the if line?

: Don't feel bad though, little mistakes like this often are the hardest to find.

: BTW, you don't need all those ifs, if they really say he same thing, just have and if for the right answer and put the response for wrong in an else like this:

: if (&result == 6)

: {

:  say_stop("'0Right!", &current_sprite);

: } else

: {

:  say_stop("'0Wrong!", &current_sprite);

: }

: I don't quite see why you're using that goto either, or was that an atempt to fix the proglem you were having?

AAhhhhh dangnn. Just some little error like it, oh well....

One more thing, the else proc didn't work...somehow.

And yes, the goto was a "try" to fix the problem, couldn't find it out.

Thanks a lot