Posted 14 December 2013 - 10:18 AM
so basicly i have no clue why its not working it says countdown:36: attempt to call number what am i doing wrong ???
d = 1 --days
h = 1 --hours
m = 23 --minutes
s = 45 --seconds
function check()
if s <= 0 then
m = m-1
s = 60
end
if m < 0 then
h = h-1
m = 60
end
if h < 0 then
d = d-1
h = 24
end
if d == 0 and h == 0 and m ==0 and s == 0 then
term.clear()
print("...World...")
print("...RESET...")
end
end
while true do
term.clear()
term.setCursorPos(1,1)
print("The World ") --replace world name
print("Resets in..")
print(d.."D "..h.."H "..m.."M "..s"S ")
sleep(1)
s = s-1
check()
end