Posted 09 April 2015 - 06:54 PM
This is my little Timer, but it doesn`t work
s = 0
m = 0
function s()
sleep(1)
s =s+1
end
function m()
if s == 60 then
m = m+1
end
end
s()
m()
write("Sec: "..s"Min: "..m)
Sorry i don`t know how to upload the pastebin
The error is:Timer: attempt to perform arithmetic __add on function and number.
Thanks for your help!
s = 0
m = 0
function s()
sleep(1)
s =s+1
end
function m()
if s == 60 then
m = m+1
end
end
s()
m()
write("Sec: "..s"Min: "..m)
Sorry i don`t know how to upload the pastebin
The error is:Timer: attempt to perform arithmetic __add on function and number.
Thanks for your help!
Edited on 09 April 2015 - 04:54 PM