Reply to Re: colour codes
If you don't have an account, just leave the password field blank.
May 24th 2005, 02:01 PM

spacehoggy


Youve seriously messed up the brackets, every time you use the if statement, you have to open a new set of brackets, also you used the if statement twice. try this.
void talk(void)
{
if (&story == 3)
{
freeze(1)
freeze(¤t_sprite)
say_stop("look, a key! Maybe i can lock up the roadblock!", 1);
wait(250);
&story = 4;
fade_down();
fill_screen(0);
&player_map = 407;
sp_x(1, 122);
sp_y(1, 289);
script_attach(1000);
load_screen();
draw_screen();
draw_status();
fade_up();
unfreeze(1);
kill_this_task();
}
}
void talk(void)
{
if (&story == 3)
{
freeze(1)
freeze(¤t_sprite)
say_stop("look, a key! Maybe i can lock up the roadblock!", 1);
wait(250);
&story = 4;
fade_down();
fill_screen(0);
&player_map = 407;
sp_x(1, 122);
sp_y(1, 289);
script_attach(1000);
load_screen();
draw_screen();
draw_status();
fade_up();
unfreeze(1);
kill_this_task();
}
}