The Dink Network

Reply to Re: Wait command

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:
 
 
August 10th 2009, 12:28 PM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
I know, I have the book sitting right next to me too

But, do me a favor and try this:

void main (void)
{
int &timer = 500;
say("start", 1);
loop:
&timer -= 1;
wait(10);
if (&timer > 0)
{
goto loop;
}

say("done", 1);
kill_this_task();
}


This SHOULD take 5 seconds, but it takes a few seconds longer. (it's a spawned script)