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

[Error] Numbers

Started by spaites, 12 October 2012 - 12:16 AM
spaites #1
Posted 12 October 2012 - 02:16 AM
I'm trying to setup a startup/program and when i try run it, it allways comes up with a number like 10 or 12.
Please help :P/>/>
Luanub #2
Posted 12 October 2012 - 02:18 AM
Those are an error message. Try restarting the computer and trying to run the program again to see if it will give you the whole error message. I've seen that work sometimes.

It can also be the offending line number but since it changes I don't think that is the case this time.

You mind posting your code so we can look and see if there is anything we can spot as being incorrect?
spaites #3
Posted 12 October 2012 - 04:12 AM

term.clear
term.setCursorPos (1, 1)
print ("############")
print ("#Techonauts#")
print ("############")
end
That's the code, and restarting the computer doesn't work.
Most of my codes don't work.
Luanub #4
Posted 12 October 2012 - 04:16 AM
A couple of things

First term.clear(all functions really) need ()'s at the end.

You can also be having problems due to the space after the function and the first (. It does not always cause a problem, but on occasion. I'm not sure why, Lua is pretty forgiving about that type of stuff and it really shouldn't matter.

And lastly you don't need the end.

term.clear()
term.setCursorPos(1, 1)
print("############")
print("#Techonauts#")
print("############")
spaites #5
Posted 12 October 2012 - 05:00 AM
Thanks soo much! :P/>/>