The Dink Network

Reply to Yet another script question

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 2007, 03:55 PM
dinkdead.gif
Why does the following script not work? Dink says "It's here" whether the sprite is visible or not, and I can't work out what I'm doing wrong.

void main (void)
{
int &here = sp_nodraw(&current_sprite, -1);
//uncomment following line to test
//sp_nodraw(&current_sprite, 1);
}

void talk (void)
{
if (&here == 0)
{
say("It's here!", 1);
}
}