This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
IceCrasher's profile picture

[Lua][Error]

Started by IceCrasher, 02 November 2012 - 09:17 AM
IceCrasher #1
Posted 02 November 2012 - 10:17 AM
Hi guys please help me, if i execute goto programm: http://pastebin.com/eGtE9yT2
so i write: goto 0 0 0 1

then it gives me this message:
———————————————————————–
0
714, 4, -292
fuellevel = 6117
4
714
goto:17: attempt to compare __lt on nil and number
————————————————————————-

here is the skyside programm: http://pastebin.com/4mJXTDP1

i think anything is wrong with the targs in the goto programm from line 106 to 110 but i don't know what i did false :D/>/>

thank you for helping :)/>/>
remiX #2
Posted 02 November 2012 - 10:32 AM
Line 106 to 110? What? The one you linked only goes to 72…
IceCrasher #3
Posted 02 November 2012 - 10:47 AM
fail :/ changed it know…
remiX #4
Posted 02 November 2012 - 11:19 AM

print(""..cx)
What does that print?



edit #2: nevermind, you have it at the top :/ But change

local targs = {...}
to


local tArgs = {...}
Because you use tonumber(tArgs[1]) etc, but u defined it as targs, not tArgs