Reply to Re: Yet another script question
If you don't have an account, just leave the password field blank.
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(¤t_sprite, -1);
if (&here == 0)
{
//whatever happens goes here
}
}
void hit (void)
{
&here = sp_nodraw(¤t_sprite, -1);
if (&here == 0)
{
//whatever happens goes here
}
}
void somethingelse (void)
{
&here = sp_nodraw(¤t_sprite, -1);
if (&here == 0)
{
//whatever happens goes here
}
}
or would I have to use seperate variable names?
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(¤t_sprite, -1);
if (&here == 0)
{
//whatever happens goes here
}
}
void hit (void)
{
&here = sp_nodraw(¤t_sprite, -1);
if (&here == 0)
{
//whatever happens goes here
}
}
void somethingelse (void)
{
&here = sp_nodraw(¤t_sprite, -1);
if (&here == 0)
{
//whatever happens goes here
}
}
or would I have to use seperate variable names?









