Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tFrame = 30
- cItems = 40
- interval = tFrame / cItems
- index = readlastid() or 0
- while true do
- sleep(interval)
- dostuffforindex( index + 1 )
- index = ( index + 1 ) % cItems
- savelastid()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement