Well that still is not a lot of information. But I will trust that everything is working but this part. You are looking for something like this.
Code:
if(quest::istaskcompleted(26) == 1) {
quest::assigntask(29);
}
I am pretty sure a completed task will equal 1, uncompleted is a 0