-- Goes from 60:
-- ,-========================-,
-- | Incorrect password |
-- | |
-- | |
-- | Locked for 60 seconds |
-- |__________________________|
-- And when it hits 9:
-- ,-========================-,
-- | Incorrect password |
-- | |
-- | |
-- | Locked for 9 seconds |
-- |__________________________|
-- All you could do is just:
print(" ,-========================-,")
print(" | Incorrect password |")
print(" | |")
print(" | |")
if locked < 10 then
print(" | Locked for "..locked.." seconds |") -- With an extra space at the end
else
print(" | Locked for "..locked.." seconds |") -- Without the extra space
end
print(" |__________________________|")
Comments