The Dink Network

Reply to Re: more problems

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:
 
 
May 4th 2011, 01:59 PM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
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:

void main(void)
{
int &a;
&a = 0;
int &trader = create_sprite(300,150,0,381,1);
}

void talk(void)
{
freeze(1);
freeze(&current_sprite);
say_stop("Why did you call me?",1);
say_stop("`1Can you do me a favour?",&current_sprite);
say_stop("What now?",1);
say_stop("`1........",&current_sprite);
say_stop("Ok ok what do i have to do?",1);

unfreeze(&current_sprite);
unfreeze(1);
}
void hit(void)
{
&a += 1;
say_stop("ok",&current_sprite);
say_stop("u hit me &a times ^^",&current_sprite);
}

It helps to put some freeze commmands in the void hit procedure though...