Advertisement
Guest User

Untitled

a guest
Jul 13th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. stock Convert2(number)
  2. {
  3. new hours = 0, mins = 0, secs = 0, string[128];
  4. hours = floatround(number / 3600);
  5. mins = floatround((number / 60) - (hours * 60));
  6. secs = floatround(number - ((hours * 3600) + (mins * 60)));
  7.  
  8. if(hours >= 24)
  9. {
  10. hours = hours % 24;
  11. }
  12.  
  13.  
  14. format(string, 100, "%02d:%02d:%02d", hours, mins, secs);
  15.  
  16. return string;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement