The Dink Network

Annoying Script

August 23rd 2005, 04:14 PM
pig.gif
Yo yo, what up my homos? It's been a while, my dog faces.

Anyways, this pretty simple script is compleatly screwed in the ass with a spoon. That is to say, it freezes on line 8. Its pissing me off because there is nothing wrong with the variable &andy as the first say procedure workifys. Well, here it is in all its glory....

void die(void)
{
freeze(1);
freeze(&andy);
&dead = 1;
stopmidi("3.mid");
say_stop("`3OH GOOD GOD!? What have you done Dink?", &andy);
//Line above plays, then everything freezes.
//It freezes like a cow in a freezer.
wait(400);
say_stop("Oh get over it, she had it coming to her. Did you hear the cheek on her?", 1);
wait(400);
say_stop("`3This is not happening,", &andy);
wait(400);
say_stop("`3this is not happening.", &andy);
wait(400);
say_stop("Well, my work here is done, catch ya later andy", 1);
wait(400);
move_stop(1, 6, 410, 0);
move_stop(1, 4, 410, 0);
wait(400);
move_stop(1, 6, 375, 0):
&player_map = 466;
sp_x(1, 230);
sp_x(1, 120);
load_screen();
draw_screen();
unfreeze(1);
unfreeze(&andy);
}

Cheers.
August 23rd 2005, 04:19 PM
duck.gif
I'm not an expert but maybe its wait(400)
August 23rd 2005, 04:23 PM
pig.gif
I dont think so, I dont think theres anything that could go wrong with that, and thats why its confusing me, its such a simple script.
August 23rd 2005, 04:27 PM
custom_fish.png
SabreTrout
Noble He/Him United Kingdom
Tigertigertiger. 
It's because it is in a void die function... the script dies pretty quickly. Try spawning a new script in void die with all the relevant lines in and you should be fine.
August 23rd 2005, 04:29 PM
pig.gif
Thamks, I'll try that soon, I'm just so dang lazy.
August 23rd 2005, 04:52 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
And stopmidi() doesn't require anything. There can only play 1 midi at a time, and regardless what midi it is, stopmidi() will stop it.
August 24th 2005, 09:16 AM
pig.gif
Yeah, I've been told a million times, but I just can't seem to change my ungodly ways.