SteamPunk_Devil

TestBar

Mar 1st, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. local Percent = 100
  2.  
  3.     if Percent >= 0 and <5 then
  4.     print("[   EMPTY  ]")
  5.     elseif Percent >= 5 and < 15 then
  6.         Bar = "[/         ]"
  7.     elseif Percent >= 15 and < 25 then
  8.         print("[//        ]")
  9.     elseif Percent >= 25 and < 35 then
  10.         print("[///       ]")
  11.     elseif Percent >= 35 and < 45 then
  12.         print("[////      ]")
  13.     elseif Percent >= 45 and < 55 then
  14.         print("[/////     ]")
  15.     elseif Percent >= 55 and < 65 then
  16.         print("[//////    ]")  
  17.     elseif Percent >= 65 and < 75 then
  18.         print("[///////   ]")
  19.     elseif Percent >= 75 and < 85 then
  20.         print("[////////  ]")
  21.     elseif Percent >= 85 and < 95 then
  22.         print("[///////// ]")
  23.     else
  24.         print("[///FULL///]")  
  25.     end
  26.     --print(Bar)
Advertisement
Add Comment
Please, Sign In to add comment