Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock Convert2(number)
- {
- new hours = 0, mins = 0, secs = 0, string[128];
- hours = floatround(number / 3600);
- mins = floatround((number / 60) - (hours * 60));
- secs = floatround(number - ((hours * 3600) + (mins * 60)));
- if(hours >= 24)
- {
- hours = hours % 24;
- }
- format(string, 100, "%02d:%02d:%02d", hours, mins, secs);
- return string;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement