Raised This Month: $12 Target: $400
 3% 

Get Time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 05-26-2020 , 07:48   Get Time
Reply With Quote #1

Hi, I need to know how to check if it's a fixed time. (10:00 / 11:00)
Example:

if (Hour> 20:00)
{
// code
}
Can you give me an example?
jugule is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 05-26-2020 , 08:04   Re: Get Time
Reply With Quote #2

You can use FormatTime and convert it to integer.
Here's example.
__________________

Last edited by MAGNAT2645; 05-26-2020 at 08:05.
MAGNAT2645 is offline
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 05-26-2020 , 08:12   Re: Get Time
Reply With Quote #3

Quote:
Originally Posted by MAGNAT2645 View Post
You can use FormatTime and convert it to integer.
Here's example.
Thank you!
Solved!
jugule is offline
Reply


Thread Tools
Display Modes

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 19:59.


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