Posted 20 August 2016 - 01:07 AM
Hey, so i'm making a program that controls my dig reactor in my base and i wanted to use a advanced screen. I downloaded direwolf20's button API and when I implement it into my code i get this error.
I thought it might have been with the api not finding a monitor so i removed the first 8 lines of the api and replaced it with
my code : http://pastebin.com/95qYfEiw
**note that at one point the monitor was monitor_0**
button:40: attempt to perform arithmetic __add on number and nil
I also downloaded his demo program and tried it and i got the same error. I have a monitor that is connected with a wired modem (monitor_1).I thought it might have been with the api not finding a monitor so i removed the first 8 lines of the api and replaced it with
local mon = peripheral.wrap("monitor_1")
but that didn't work, im currently lost on what to do. Thanks in advancemy code : http://pastebin.com/95qYfEiw
**note that at one point the monitor was monitor_0**