time print
How can I print Hours after 60min crossed
Currently its showing in mins and seconds but i want it to change to hours if it crossed 60min 00Seconds PHP Code:
|
Re: time print
https://forums.alliedmods.net/showthread.php?p=1700371
Don't mind looking at the XPMode.sma, but there's a time.inc attached at the topic that might be usefull for you. I'm not certain though. Also this could be usefull: https://forums.alliedmods.net/showpo...88&postcount=2 PHP Code:
|
Re: time print
Quote:
According this code it will print hours but min will keep increasing. |
Re: time print
Try using clamp(), not sure if it will work though.
Alternatively, i would suggest using a check if iMunites reached 60 and reset it. This probably isn't the proper way though. |
Re: time print
When dividing an odd number always use floats AKA double variables then round the number to get an integer.
|
Re: time print
Quote:
Code:
iSeconds = 12345 // your time source in secondsQuote:
|
Re: time print
Me neither just for the integer division problem.
|
| All times are GMT -4. The time now is 02:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.