Raised This Month: $12 Target: $400
 3% 

Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: klippy
Forum: Code Snippets/Tutorials 11-29-2017, 07:38
Replies: 12
Views: 3,680
Posted By klippy
Re: ConvertFloatToSeconds Stock (Useful for Songs)

That's why you create one. If many programs can do that by reading a file, Pawn can too.
Forum: Code Snippets/Tutorials 11-22-2017, 15:32
Replies: 12
Views: 3,680
Posted By klippy
Re: ConvertFloatToSeconds Stock (Useful for Songs)

That's the thing - the minute:seconds format is a string. In your example you defined MUSIC_LENGTH to 3.15.
It's more logical to store a timespan as the number of seconds. 3.15 is not the number of...
Forum: Code Snippets/Tutorials 11-22-2017, 12:55
Replies: 12
Views: 3,680
Posted By klippy
Re: ConvertFloatToSeconds Stock (Useful for Songs)

I don't get why would anyone store the song length of 3:15 as 3.15. 195.0 is much more more appropriate and manageable.
Showing results 1 to 3 of 3

 
Forum Jump

All times are GMT -4. The time now is 03:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode