You're not actually showing what's on line 136 in the image, though line 115 and 117 will cause a few problems.
You've also only declared VECTOR path_nodepos in set_path_node function and not in the patrol_path action where you're trying to call it, (from what is shown).