The Dink Network

Reply to Re: Another problem

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:
 
 
September 9th 2009, 03:31 PM
spike.gif
void main(void)
{
int &pass;
&pass = 0;
}

void talk(void)
{
If (&pass == 0)
{
freeze(1);
say_stop("`5HEY! What are you doing here?!", &current_sprite);
choice_start();
set_y 240
set_title_color 1
title_start();
"What are you doing here?"
title_end();
"The major sent me"
"Spying"
choice_end();
If (&result == 1)
{
say_stop("`5Oh really? Tell me the password then!", &current_sprite);
choice_start();
set_title_color 1
title_start();
"Password"
title_end();
"1"
"2"
"3"
"4"
"5"
"6"
"7"
"8"
"9"
"10"
"11"
"12"
"13"
"14"
"15"
"16"
"17"
"18"
"19"
"20"
choice_end();
//missing &
If (&result == 8)
{
say_stop("`5Oh you know the password!",&current_sprite);
say_stop("`5Then the major really sent you!", &current_sprite);
wait(200);
say_stop("Of course he did!*cough*", 1);
say_stop("Now, let me in!", 1);
wait(200);
say_stop("Ok.", &current_sprite);
sp_hard(&block, 1);
draw_hard_map();
&pass = 1;
unfreeze(1);
}
else
{
say_stop("`5That's wrong, I have to kill you.", &current_sprite);
unfreeze(1);
&life = 0;
//I added this here because otherwise when the player picks choice 2, it will run the following dialogue for the previous choice menu
return;

}
//missing a closing bracket
}
If (&result == 2)
{
say_stop("I'm spying on you.",1);
wait(200);
say_stop("`5Oh I see, then i have to kill you.", &current_sprite);
unfreeze(1);
&life = 0;
}
}
}