thank you for help.
code is working fine.

now i have another problem. it is how to find next node of path.
Code:
 
next_nod=path_nextnode(my,path_getnode(me,1,1,my.skill2),path_getedeg(me,1,1,my.skill1));

next_nod= path_scannode(my,path_getnode(my));



i have tryed this methods but faile.

i want to get current node vector position and next node vector position to
calculate angel like this
Code:

ang_c=atan(((next_node.x-curr_node.x)/next_node.y-curr_node.y));
vec_to_angle(my.pan+ang_c,vDir);