Posted 03 August 2015 - 04:29 AM
This is my error: ERROR : Line 5 - 'then' expected near ')'
This is a portion of my code, starting at line 4:
The issue is with this line:
Can someone help please?
This is a portion of my code, starting at line 4:
local update = http.get("http://pastebin.com/raw.php?i=REDACTED")
if update and update.readAll() ~= version) then
print("REDACTED Update Found!")
print("Current Version: " .. version)
print("Update Version: " .. update)
print()
print("Your Computer Will Automatically Update REDACTED in 5 seconds. Please wait.")
sleep(5)
update.close()
shell.run("pastebin get REDACTED startup")
print("Update Complete. Your Computer Will Reboot in 5 seconds. Please DO NOT Press Any Buttons")
sleep(5)
os.reboot()
end
The issue is with this line:
if update and update.readAll() ~= version) then
Can someone help please?