Reply to Re: Script interference
If you don't have an account, just leave the password field blank.
DinkC is generally pretty picky about the use of ONE space around each side of any of it's operators. I don't know whether or not this is the root of your problems, but I can tell you that this:
You don't actually need the space after if, but you DO need exactly one space on each side of the == sign. Don't believe me? COPY EXACTLY this short piece of code as key-68.c and get Dink to a blank "New Screen". Then press the letter D (for Dink of course!) on your keyboard.
if(&help_var ==3)should be
if (&help_var == 3)and this
if(&help_var ==2)should be
if (&help_var == 2).
You don't actually need the space after if, but you DO need exactly one space on each side of the == sign. Don't believe me? COPY EXACTLY this short piece of code as key-68.c and get Dink to a blank "New Screen". Then press the letter D (for Dink of course!) on your keyboard.
void main( void ) { script_attach(1000); freeze(1); if(1 == 0) say_stop("if(1 == 0) with spaces around numbers FAILS",1); else say_stop("if(1 == 0) with spaces around numbers works correctly",1); if (1 == 0) say_stop("if (1 == 0) with spaces around numbers and after if FAILS",1); else say_stop("if (1 == 0) with spaces around numbers and after if works correctly",1); if(1==0) say_stop("if(1==0) with no spaces around numbers FAILS",1); unfreeze(1); kill_this_task(); }