Raised This Month: $ Target: $400
 0% 

task on specific hour and day


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Menethil
Senior Member
Join Date: Aug 2011
Old 09-28-2011 , 10:32   task on specific hour and day
Reply With Quote #1

Code:
plugin_cfg()
{
    
    new dayname[33]
    new hour[3]
    get_time("%A", dayname, charsmax (dayname))
    get_time("%H", hour, charsmax(hour));

    if(!equali(dayname, "Saturday") && !equali(dayname, "Sunday")) 
    return PLUGIN_HANDLED

    if(equali(dayname, "Saturday") && equali(hour, "12")
     set_task

    else if(equali(dayname, "Sunday") && equali(hour, "12")
    set_task

}
I want to do something every WeekDays on 12o'clock
Would this work ? i just writed it, and i dont have where to test it.
Menethil 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 19:35.


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