Raised This Month: $ Target: $400
 0% 

String Variable with get_time


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-31-2006 , 18:43   Re: String Variable with get_time
Reply With Quote #3

Code:
public something_function() {     new day[1];     get_time("%w", day, 1)         if(equal(day, "6"))     {         //it's saturday, execute whatever...     }     else if(equal(day, "0"))     {         //it's sunday, execute whatever...     } }
__________________
Brad is offline
 



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 22:22.


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