AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Time hours and minutes (https://forums.alliedmods.net/showthread.php?t=331718)

StrikerM 04-03-2021 23:34

Time hours and minutes
 
Hello.

It's possible to create something that can convert minutes to hours and minutes let's say 90 minutes to convert them into 1 hour and half.

But doing that in a message, any one has some clue how to do it ?

jimaway 04-04-2021 05:55

Re: Time hours and minutes
 
Code:
new n = 90 new hours = n/60 new minutes = n%60

StrikerM 04-04-2021 09:20

Re: Time hours and minutes
 
Quote:

Originally Posted by jimaway (Post 2742939)
Code:
new n = 90 new hours = n/60 new minutes = n%60

Thanks man.


All times are GMT -4. The time now is 07:31.

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