YOu have to provide a task id, in your case it would be the id variable.
PHP Code:
set_task(30.0, "Continue", id)
However, I'm having trouble understanding your code. Setting all those recursive tasks is confusing and you have unnecessary repeated code (getting the auth id).
__________________