Reply to Re: more problems
If you don't have an account, just leave the password field blank.
But as it says 0 it means that the variable is declared correctly. Apparently it's not incrementing properly.
I just tested the script after adding the suggestions I made and it runs fine for me... Just to be sure I'll post the script again here:
It helps to put some freeze commmands in the void hit procedure though...
I just tested the script after adding the suggestions I made and it runs fine for me... Just to be sure I'll post the script again here:
void main(void) { int &a; &a = 0; int &trader = create_sprite(300,150,0,381,1); } void talk(void) { freeze(1); freeze(¤t_sprite); say_stop("Why did you call me?",1); say_stop("`1Can you do me a favour?",¤t_sprite); say_stop("What now?",1); say_stop("`1........",¤t_sprite); say_stop("Ok ok what do i have to do?",1); unfreeze(¤t_sprite); unfreeze(1); } void hit(void) { &a += 1; say_stop("ok",¤t_sprite); say_stop("u hit me &a times ^^",¤t_sprite); }
It helps to put some freeze commmands in the void hit procedure though...