Advertisement
Guest User

Untitled

a guest
Apr 4th, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. function getCharge()
  2. chargep = math.floor(((computer.energy() / computer.maxEnergy()) * 100)
  3. return chargep
  4. end
  5.  
  6. if getCharge() < 100 then
  7. print("Charge low")
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement