Hi,
uh i tried using waitfor, ex:
PHP Code:
function onCreated()
{
echo( "waiting" );
if( waitfor( this, "onChange", 5 ) == false ) echo( "timeout" );
else echo( "event" );
}
function onChange( test )
{
sendtorc( "waiting again" @ test );
if( waitfor( this, "onChange", 5 ) == false) echo( "timeout" );
}
now when onChange is called in the 5 secs before the timeout runs out it echoes "event" but but doesnt say "waiting again", how can i make it so it runs the functions too(with the params sent to it)