I wanted to make a stock that says how much hours, mins, when U give seconds;
PHP Code:
stock PlayTime( Seconds, Minutes, Hours ) {
if( Seconds == 0 )
return 0;
Calc_Time:
if( (Seconds / 3600) > 0 ) {
Hours++;
Seconds /= 3600;
goto Calc_Time;
}
else if( (Seconds / 60) > 0 ) {
Minutes++;
Seconds /= 60;
goto Calc_Time;
}
return 1;
}
For some reason Seconds / .. don't do anything
Please help / fix!
Thanks
__________________