The Dink Network

Reply to What's wrong with this loop?

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:
 
 
February 25th 2004, 03:09 PM
spike.gif
void hurt1_10( void )
{
&time = 10;
loop:
hurt(1, 1);
&time -= 1;
wait(1000);
if (&time < 1)
kill_this_task();
goto loop;
}

When I run this task, it hurts Dink for several points for a few seconds. So what's wrong??