Raised This Month: $7 Target: $400
 1% 

Server Tasks v2.0


Post New Thread Reply   
 
Thread Tools Display Modes
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 07-22-2011 , 07:04   Re: Server Tasks v1.1
Reply With Quote #21

Do not add seconds!
Only HOUR:MINUTE!
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-22-2011 , 14:33   Re: Server Tasks v1.1
Reply With Quote #22

PHP Code:
    if( szTime] == '0' )
        
server_cmd"exec %s/ServerNight.cfg"szConfigsDir );
    
    else
        
server_cmd"exec %s/ServerDay.cfg"szConfigsDir ); 
This has nothing to do with this plugin and is a poor assumption of "day" and "night."
__________________
fysiks is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 07-25-2011 , 01:48   Re: Server Tasks v1.1
Reply With Quote #23

Quote:
Originally Posted by fysiks View Post
PHP Code:
    if( szTime] == '0' )
        
server_cmd"exec %s/ServerNight.cfg"szConfigsDir );
    
    else
        
server_cmd"exec %s/ServerDay.cfg"szConfigsDir ); 
This has nothing to do with this plugin and is a poor assumption of "day" and "night."
Any sugestions about?
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-25-2011 , 06:44   Re: Server Tasks v1.1
Reply With Quote #24

Quote:
Originally Posted by claudiuhks View Post
Any sugestions about?
If I were you then I would remove it completely. If you want that feature in there, I wrote a plugin in the requests section for day and night configs with cvar to set the hours for when the night starts and ends.
__________________
fysiks is offline
s3rserii
Senior Member
Join Date: Jan 2010
Old 07-25-2011 , 10:18   Re: Server Tasks v1.1
Reply With Quote #25

Quote:
Originally Posted by claudiuhks View Post
Do not add seconds!
Only HOUR:MINUTE!
cannot add the second function in your code? its not possible?
s3rserii is offline
Shadymn
Senior Member
Join Date: Sep 2010
Old 07-26-2011 , 03:23   Re: Server Tasks v1.1
Reply With Quote #26

maybe it is not possible but he doesn't want it
Shadymn is offline
vladhks
Junior Member
Join Date: May 2012
Location: VA DAU MUIE
Old 05-20-2012 , 05:10   Re: Server Tasks v1.1
Reply With Quote #27

Great Job, work .
vladhks is offline
Santaaa
BANNED
Join Date: May 2012
Old 05-21-2012 , 09:48   Re: Server Tasks v1.1
Reply With Quote #28

Nicely made.
Santaaa is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 05-21-2012 , 10:32   Re: Server Tasks v1.1
Reply With Quote #29

Sounds be cool.
__________________
kramesa is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-30-2012 , 13:19   Re: Server Tasks v1.1
Reply With Quote #30

Quote:
Originally Posted by fysiks View Post
If I were you then I would remove it completely. If you want that feature in there, I wrote a plugin in the requests section for day and night configs with cvar to set the hours for when the night starts and ends.
I agree with fysiks. You should consider it.

Some things :
  • Use trim() instead of replace().
  • strtok() + trim()² = parse().
  • Just check hFile one time after fopen() and remove the others checks.
  • Avoid the use of set_task() with "b" flag. Use an entity, see this tutorial.
  • In server_cmd(), you can use directly ArrayGetStringHandle() with "%a".
__________________

Last edited by Arkshine; 05-30-2012 at 13:19.
Arkshine 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 22:33.


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