Posted 21 July 2015 - 07:33 PM
Hi all! Making an updater (as you might have seen in my last post) and am just wondering why this isnt working. Code:
But it works if I do this:
Here is the pastebin its running
Any help is appreciated, because I cant really think of any reason why it wont work :P/>
Thanks in advance!
Spoiler
local name = {...}
program = name[1]
function update()
shell.run("pastebin", "run", "GVZYhGTS")
print(tostring(program[1]))
if program[1] == true then
shell.run("pastebin", "get", program[2], "updatetest")
end
end
update()
But it works if I do this:
Spoiler
function update(program)
shell.run("pastebin", "run", "GVZYhGTS")
print(tostring(program[1]))
if program[1] == true then
shell.run("pastebin", "get", program[2], "updatetest")
end
end
update(enderdice)
Here is the pastebin its running
Any help is appreciated, because I cant really think of any reason why it wont work :P/>
Thanks in advance!
Edited on 21 July 2015 - 05:33 PM