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

Help with printcenterd.

Started by cheekycharlie101, 03 October 2012 - 04:19 PM
cheekycharlie101 #1
Posted 03 October 2012 - 06:19 PM
ok so i have been using printCentered a lot in my code. but i wonderd if it would work on a monitor. i tried using mon.printCentered and got attempt to index. a nill value. so i tired just normal printCentered and got another error. is it possible to use these on monitors. if so pleasee help me. thanks -Cheeky
Doyle3694 #2
Posted 03 October 2012 - 06:22 PM
make another function like monPrintCentered or something. then type 'mon' in front of set cursor pos and for printing do mon.writeLine()
cheekycharlie101 #3
Posted 03 October 2012 - 06:30 PM
make another function like monPrintCentered or something. then type 'mon' in front of set cursor pos and for printing do mon.writeLine()
still get the attempt to index error
Cranium #4
Posted 03 October 2012 - 08:49 PM
Fixed my API so it should work with monitors, Cheeky. Try the new version: http://pastebin.com/dXamY7Jc