Raised This Month: $ Target: $400
 0% 

PlayTime


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 07-16-2011 , 21:16   PlayTime
Reply With Quote #1

I wanted to make a stock that says how much hours, mins, when U give seconds;

PHP Code:
stock PlayTimeSecondsMinutesHours ) {
    if( 
Seconds == )
        return 
0;

    
Calc_Time:
    
    if( (
Seconds 3600) > ) {
        
Hours++;
        
Seconds /= 3600;
        goto 
Calc_Time;
    }
    else if( (
Seconds 60) > ) {
        
Minutes++;
        
Seconds /= 60;
        goto 
Calc_Time;
    }
    return 
1;

For some reason Seconds / .. don't do anything
Please help / fix!

Thanks
__________________
Retired.
Xalus is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:09.


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