I finally made the robot work...

!
My robots function is to follow a certain line on a black background(i used black to make it easier...).
i changed the photoresistor connection so that the voltage increases as the light increases
then i modified the code...on the direction control i removed some code:
servo_left(25)
servo_right(44)
i just remove one of the servo when it needs to turn to a certain direction...

!
i also modified the a2dconvert8bit procedure, i just copied the one on the a2dconvert10bit and then i pasted it to the 10bit then it worked perfectly...

!
I'll post some pictures when the robot is 100% done...
"SOCIETY OF ROBOTS ROCKS!"

!
Thanks guys...

!