bios:328: [string "skyside"]:30: '(' expected
here is the programm:
local fuellevel = 0
local cx, cy, cz = 0, 0, 0
local nx, ny, nz = 0, 0, 0
direct = 0
rednet.open("right")
cx, cy, cz = gps.locate(1)
if x and y and z then
   print(x..y..z)
else
  print("Couldn't get position")
end
function doit()
fuellevel = turtle.getFuelLevel()
if fuellevel < 0 then
   print("Please put fuel in slot1.")
end
while fuellevel < 0 do
   turtle.refuel()
end
print("Thank you.")
function finddirect1
	   if turtle.detect() then
	   print("I need space in front of me!")
	   while turtle.detect do
			    os.sleep(1)
		  return
	   end
	   return
    else
	   finddirect2
    end
end
function finddirect2
   nx, ny, nz = gps.locate(1)
   if nx < ox then
	  direct = 1
   end
   if nx >  ox then
	  direct = 3
   end
   if nz < oz then
	  direct = 4
   end
   if nz > oz then
	  direct = 2
   end
end  
finddirect1()
thanks
 
         
                 
                 
                