Posted 21 July 2015 - 03:59 AM
Hi all! I decided to make an autoupdater, and figured it best to only make it one program. I also figured that I may aswell make it in my api so I dont have to have an entirely seperate program. The problem comes in when I do this:
Now, running this normally will work . . . Just not when I load it as an api. Anyone know how I would get that to work?
Note: It returns the error
–Wont be on again until tomorrow so dont think Im ignoring you if you reply. Thanks in advance!
Spoiler
You can see I was messing around a bit to try and narrow down the error
function updateCheck()
--shell.run("pastebin", "run", "GVZYhGTS")
--if enderdiceupdate == true then
--shell.run("pastebin", "get", program.."link", "updatetest")
shell.run("pastebin", "get", "KXRzGDcC", "updatecheck")
--end
end
Note: It returns the error
attempt to index nil ? (a nil value)
And I can use other functions in my api, so it isnt that.–Wont be on again until tomorrow so dont think Im ignoring you if you reply. Thanks in advance!
Edited on 21 July 2015 - 03:48 PM