Raised This Month: $ Target: $400
 0% 

[check] is this code correct/ pls check


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-12-2011 , 18:51   Re: [check] is this code correct/ pls check
Reply With Quote #2

Quote:
Originally Posted by avril-lavigne View Post
is it correct ? to set task on monday tuesday and other days.
What does each task do, it may be even simpler than the below
PHP Code:
new day]; 
get_time"%w" day )

switch ( 
str_to_numday ) )
{
    case 
0set_task5.0 "start_scan" , .flags="b" )
    case 
6set_task5.0 "start_scan1" , .flags="b" )
}

// or

new iDay  str_to_numday );
set_task5.0 , ( !iDay || ( iDay ) ) ? "start_scan" "start_scan1" , .flags="b" 
__________________

Last edited by Bugsy; 11-13-2011 at 00:45.
Bugsy 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 08:28.


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