Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. function set_storage_ip(ip, value)
  2.    
  3. mountip = ""
  4.    
  5.     for i in string.gmatch(ip, "%d") do
  6.         mountip = mountip .. i
  7.     end
  8.    
  9.     setGlobalStorageValue(mountip, value)
  10.    
  11. end
  12.  
  13. function get_storage_ip(ip)
  14.  
  15. mountip = ""
  16.  
  17. for i in string.gmatch(ip, "%d") do
  18.     mountip = mountip .. i
  19. end
  20.  
  21. return getGlobalStorageValue(mountip)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement