Reply to Re: Callback
If you don't have an account, just leave the password field blank.
Pseudo code...
Somewhere:
//&spawned is global, you can also use any other valid check, just make sure it isn't run twice at the same moment, or you must want that.
if (&spawned == 0)
{
spawn("other_script");
//add .c extension?
&spawned == 1;
}
other_script:
void main( void )
{
wait(&loooong_time);
pee();
}
And the poison would be done with a loop and a timer or something.
other_script:
void main( void )
{
int &timer = 0;
loop:
wait(1000);
&timer += 1;
if (&timer == &time)
{
if (&poisoned != 1)
{
//Kill if not poisoned
kill_this_task();
}
&life -= 5;
}
goto loop;
}
Somewhere:
//&spawned is global, you can also use any other valid check, just make sure it isn't run twice at the same moment, or you must want that.
if (&spawned == 0)
{
spawn("other_script");
//add .c extension?
&spawned == 1;
}
other_script:
void main( void )
{
wait(&loooong_time);
pee();
}
And the poison would be done with a loop and a timer or something.
other_script:
void main( void )
{
int &timer = 0;
loop:
wait(1000);
&timer += 1;
if (&timer == &time)
{
if (&poisoned != 1)
{
//Kill if not poisoned
kill_this_task();
}
&life -= 5;
}
goto loop;
}