The Dink Network

Reply to Re: I Need help with a 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:
 
 
September 16th 2005, 09:43 AM
spike.gif
Make a global variable. (they're commonly in main.c)

For example

make_global_int("&mammothleg", 0);

Then do this for what you want to only run once:

if (&mammothleg == 0)
{
&mammothleg = 1;
//stuff that happens here
}

Next time the script is entered the stuff in the brackets won't run because if (&mammothleg == 0) is false.