Blazuno

testgrounds

Oct 31st, 2021 (edited)
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. local arg1, arg2, arg3 = ...
  2. local miningDimensions = {arg1, arg2, arg3}
  3. for i,v in pairs(miningDimensions) do
  4. print(i..":"..v)
  5. end
  6.  
  7.  
  8. function checkDimensionsNil()
  9. print("1")
  10. if v == nil then
  11. print("Failed to enter mining positions.")
  12. error()
  13. else
  14. print(v)
  15. end
  16. end
  17.  
  18. table.foreach(miningDimensions, checkDimensionsNil())
  19.  
Add Comment
Please, Sign In to add comment