artem211

mine

Aug 2nd, 2015
1,704
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local f = require("filesystem")
  2. if not f.exists("lib/api.lua") then
  3.     os.execute("pastebin get -f gqZ1Qdqi lib/api.lua")
  4. end
  5. local args = {...}
  6. if #args < 2 or (type(tonumber(args[1]))~= "number") or (type(tonumber(args[2]))~= "number") then
  7.     print("Использование mine <длина> <ширина>")
  8.     os.exit()
  9. else
  10.     require("api").mine(tonumber(args[1]), tonumber(args[2]))
  11. end
RAW Paste Data