Posted 26 October 2013 - 09:04 AM
I am confused by this error. I have never encountered it before. I think I know what the problem is, i'm making a printing api but i'm using old code scraped from one of my computer API's.
Here is the code:
(p is the printer peripheral)
EDIT: Just realised I never included the offending line. Fixed.
Here is the code:
(p is the printer peripheral)
function lPrint(text)
p.write(text)
inc()
p.setCursorPos(1,cons)
end
function cPrint(text)
getInf()
term.setCursorPos(math.ceil((vw + 1)/2 - text:len()/2), cons) <--Line 59 Errors
lPrint(text)
end
function rPrint(text)
getInf()
term.setCursorPos(vw - text:len() - 1, cons)
lPrint(text)
end
EDIT: Just realised I never included the offending line. Fixed.