Jump to content




trying to set a time using user input


  • You cannot reply to this topic
1 reply to this topic

#1 arixama

  • New Members
  • 1 posts

Posted 25 December 2013 - 11:07 PM

im trying to figure out how to get sleep() to accept a user input instead of having a set time.
help please?

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 25 December 2013 - 11:15 PM

print("time to sleep?")
local time = read()
sleep(tonumber(time))






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users