The Dink Network

Reply to Re: 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, 05:16 PM
dinkdead.gif
Oh... yes. I should've realised that from my other question. Thanks!

Can I set the same variable multiple times in the same script, for example:
void main (void)
{
int &here;
}

void talk (void)
{
&here = sp_nodraw(&current_sprite, -1);
if (&here == 0)
{
//whatever happens goes here
}
}

void hit (void)
{
&here = sp_nodraw(&current_sprite, -1);
if (&here == 0)
{
//whatever happens goes here
}
}

void somethingelse (void)
{
&here = sp_nodraw(&current_sprite, -1);
if (&here == 0)
{
//whatever happens goes here
}
}

or would I have to use seperate variable names?