PHP Code:
#define TASK_GIVEDEAGLE 558
#define TASK_REMOVEDEAGLE 559
->
PHP Code:
#define TASK_GIVEDEAGLE 558
#define TASK_REMOVEDEAGLE 659
Your tasks are too close to eachother and causing overlaps. Tasks need a minimum of MAXPLAYERS distance from eachother to prevent remove_task() from one task affecting another.