Lupus590

[CC] [Psudo] Update System

Dec 27th, 2016
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. local function checkUpdate()
  2.   local h = http.get(MY_VERSION_NUMBER_FILE)
  3.   -- check h has valid data
  4.     -- check if version number from h is different from the one installed
  5.         -- download and install update
  6.         -- return "Installed update"
  7.     -- else return "No update"
  8.   -- else return "Can't get update file"
  9. end
Advertisement
Add Comment
Please, Sign In to add comment