So heres my problem i cant get my head around the logic of this anyone now how i do this
I have a long song (vice city radio station) and i want to set it the start time realative to server up time so i need to work out how many times the server time could of gone into the length of the song and work out where it would start playing from any ideas on how i would do it?
[code]tracktime = CurTime( ) % TRACK_LENGTH
times = math.floor( CurTime( ) / TRACK_LENGTH )[/code]
So tracktime will always represent a position inside the track and times will be the number of times ( rounded down ) that it has played so far.
Thanks dude much appericated.
Sorry, you need to Log In to post a reply to this thread.