ID:268262
 
How long is 2:16 minutes(2 m inutes and 16 seconds) if i where to put it in sleep(Numberwhatever.)? and i want the song to play for ever.
if 10ticks=1second
60seconds=1minute
2minutes and 16seconds=1360ticks, provided my math is right.
In response to Scoobert
Scoobert wrote:
if 10ticks=1second
60seconds=1minute
2minutes and 16seconds=1360ticks, provided my math is right.

Or, my favorite way to do this is like this...

var/second=10
var/minute=600
var/hour=36000

Then, just take another variable and times it by how many minutes, seconds, hours etc...
In response to Scoobert
Scoobert wrote:
if 10ticks=1second
60seconds=1minute
2minutes and 16seconds=1360ticks, provided my math is right.

and i want the song to play for ever on login? Like Looping it
In response to Vash_616
There is a parameter in the sound function that does that. Look up sound in the reference.
In response to Goku72
handy little trick there bud.
In response to Goku72
Goku72 wrote:
Scoobert wrote:
if 10ticks=1second
60seconds=1minute
2minutes and 16seconds=1360ticks, provided my math is right.

Or, my favorite way to do this is like this...

var/second=10
var/minute=600
var/hour=36000

Then, just take another variable and times it by how many minutes, seconds, hours etc...

Or you can use the handy #define

#define SEC 10
#define MIN 600
#define HOUR 36000