Raised This Month: $ Target: $400
 0% 

[HELP] its possible to count days


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 11-14-2014 , 10:26   [HELP] its possible to count days
Reply With Quote #1

Hello, i would like to know how can i countdown days 1 by 1 to set a task ( for some days ) ? Thank you
__________________

Last edited by ghost95v; 11-14-2014 at 10:29.
ghost95v is offline
Send a message via Skype™ to ghost95v
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-14-2014 , 10:29   Re: [HELP] its possible to count days
Reply With Quote #2

Your task will never run that long unless your server never changes maps and never restarts. Otherwise, what exactly are you trying to do
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 11-14-2014 , 10:51   Re: [HELP] its possible to count days
Reply With Quote #3

im wondering if i can change a cvar or to do a specific function for some days, example to change a specific cvar in a specific date or in weekend
__________________

Last edited by ghost95v; 11-14-2014 at 10:56.
ghost95v is offline
Send a message via Skype™ to ghost95v
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-14-2014 , 11:02   Re: [HELP] its possible to count days
Reply With Quote #4

Then use get_time to retrieve the date or whatever and then depending on the value, do whatever you need to do
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 11-14-2014 , 11:35   Re: [HELP] its possible to count days
Reply With Quote #5

Yes, can i have an simple example to get the right date / month / year and then "if is a specified date / month / year do something" ?
__________________
ghost95v is offline
Send a message via Skype™ to ghost95v
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-14-2014 , 11:41   Re: [HELP] its possible to count days
Reply With Quote #6

Quote:
Originally Posted by ghost95v View Post
Yes, can i have an simple example to get the right date / month / year and then "if is a specified date / month / year do something" ?
Lol, check the wiki.
__________________
HamletEagle is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-14-2014 , 11:43   Re: [HELP] its possible to count days
Reply With Quote #7

EDIT: http://amxmodx.org/api/amxmodx/get_time
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 11-14-2014 at 11:43.
YamiKaitou 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 17:37.


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