Raised This Month: $51 Target: $400
 12% 

DoD Antihax


Post New Thread Reply   
 
Thread Tools Display Modes
h0_noMan
Junior Member
Join Date: Sep 2008
Old 05-13-2010 , 13:24   Re: DoD Antihax
Reply With Quote #11

New version.

Version 1.10 :
- Improving sending parameters with set_task()
- Fixing a "index out of bound" with the number of players
- Delay for displaying Informations to admins increased by 5 seconds
h0_noMan is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 05-13-2010 , 16:06   Re: DoD Antihax
Reply With Quote #12

This :

PHP Code:
// Formatting Log Filename
    
new yearmonthday
    date
(yearmonthday
    
format(g_logFilename31"antihax_%d"year)
    if(
month 10)
        
format(g_logFilename31"%s0"g_logFilename)
    
format(g_logFilename31"%s%d"g_logFilenamemonth)
    if(
day 10)
        
format(g_logFilename31"%s0"g_logFilename)
    
format(g_logFilename31"%s%d.log"g_logFilenameday
could be :

PHP Code:
new iDate[32]
    
get_time("%Y%m%d"iDatesizeof iDate -1) ; trim(iDate)
    
format(g_logFilename31"antihax_%s.log"iDate
__________________
Dr.G is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-13-2010 , 16:10   Re: DoD Antihax
Reply With Quote #13

iDate lol . szDate.
__________________
fysiks is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-13-2010 , 16:59   Re: DoD Antihax
Reply With Quote #14

Quote:
Originally Posted by Dr.G View Post
PHP Code:
new iDate[32]
    
get_time("%Y%m%d"iDatesizeof iDate -1) ; trim(iDate)
    
format(g_logFilename31"antihax_%s.log"iDate
Even smaller
PHP Code:
get_time("antihax_%Y%m%d.log"g_logFilenamecharsmax(g_logFilename)); 
__________________
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
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-13-2010 , 17:45   Re: DoD Antihax
Reply With Quote #15

Quote:
Originally Posted by YamiKaitou View Post
Even smaller
PHP Code:
get_time("antihax_%Y%m%d.log"g_logFilenamecharsmax(g_logFilename)); 
I notice he uses trim(). Does get_time() add any whitespace characters that would need to be trimmed first?
__________________
fysiks is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 05-13-2010 , 18:23   Re: DoD Antihax
Reply With Quote #16

dont think so, its just a habit, Iam paranoid... Or no, well think i got that habit from compareing(equal(.., ..) i think) strings on a WIN server, and found that is was needed.. And hey asshole Iam right here! =)
__________________
Dr.G is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-13-2010 , 18:26   Re: DoD Antihax
Reply With Quote #17

Quote:
Originally Posted by Dr.G View Post
dont think so, its just a habit, Iam paranoid... Or no, well think i got that habit from compareing(equal(.., ..) i think) strings on a WIN server, and found that is was needed.. And hey asshole Iam right here! =)
It was a reply to Yami's post so I figured it was appropriate to refer to you in the third person .
__________________
fysiks is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 05-13-2010 , 18:33   Re: DoD Antihax
Reply With Quote #18

Quote:
Originally Posted by fysiks View Post
Location: Flatland, USA
Yea yea whatever
__________________
Dr.G is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-13-2010 , 18:43   Re: DoD Antihax
Reply With Quote #19

Quote:
Originally Posted by fysiks View Post
I notice he uses trim(). Does get_time() add any whitespace characters that would need to be trimmed first?
I have never noticed whitespace on strings created with get_time when I have used it, unless I tell it to add whitespace
__________________
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
h0_noMan
Junior Member
Join Date: Sep 2008
Old 05-13-2010 , 19:00   Re: DoD Antihax
Reply With Quote #20

Thanks for the get_time() function.
h0_noMan is offline
Reply



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 07:40.


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