View difference between Paste ID: J2hqDMaw and QiKnup7u
SHOW: | | - or go back to the newest paste.
1-
input = "back"
1+
2-
down = "bottom"
2+
3
while true do
4
  shell.run("clear")
5
  print("You are having a " .. count .. " GP)
6-
while true od
6+
7
 
8
   if event =="redstone" then
9
     if redstone.getInput("back") then
10
      count = count + 1
11-
   if event ==("redstone") then
11+
12-
     if redstone.getInput(sinput) then
12+
     if redstone.getInput("bottom") then
13
      count = count - 1
14
     end
15-
     if redstone.getInput(down) then
15+
   elseif event == "char" and argument == "q" or redstone.getInput("left") then break end
16
end