Guest User

Untitled

a guest
May 4th, 2012
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. input = "back"
  2. down = "bottom"
  3.  
  4. count = 0
  5.  
  6. while true od
  7.   shell.run("clear")
  8.   print("You are having a " .. count .. " GP)
  9.  event, argument = os.pullEvent()
  10.  
  11.   if event ==("redstone") then
  12.     if redstone.getInput(sinput) then
  13.      count = count + 1
  14.     end
  15.     if redstone.getInput(down) then
  16.      count = count - 1
  17.     end
  18.   end
  19.   if event == "char" and argument == "q" then break end
  20.   if redstone.getInput("left") then break end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment