The Dink Network

Reply to O.K., what's wrong with this script ?

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:
 
 
March 6th 2003, 05:28 AM
pq_frog.gif
Ric
Peasant They/Them Canada
 
I'm trying to make an area seem larger than it realy is by having Dink warp to the other side.
void main ()
{
int &wrap;
&wrap=sp_x(1,-1);
if (&wrap < 10)
{
move(1,6,11,0);
}
wait(500);
loop:
&wrap = sp_x(1,-1);
if(&wrap < 20)
{
&player_map += 5;
sp_x(1,595);
load_screen(&player_map);
draw_screen();
return;
}
wait(100);
goto loop;
}
On the other side is the same script, but reversed.
void main ()
{
int &wrap;
&wrap = sp_x(1,-1);
if (&wrap > 590)
{
move(1,4,588,0);
}
wait(500);
loop:
&wrap = sp_x(1,-1);
if (&wrap > 580)
{
&player_map -= 5;
sp_x(1,5);
load_screen(&player_map);
draw_screen();
return;
}
wait(100);
goto loop;
}
But Dink jumps to one screen o.k., then back to the other screen repeatedly...???