Raised This Month: $ Target: $400
 0% 

Natives


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Intouchable
Senior Member
Join Date: Mar 2012
Old 05-18-2012 , 11:47   Natives
Reply With Quote #1

PHP Code:
new const constLogs[][] = {
 
"AdminCommandsLogs/Kick/Kicks",
 
"AdminCommandsLogs/Slay/Slays",
 
"AdminCommandsLogs/Slap/Slaps"
}


public 
plugin_init()
{
 
 for(new 
0szBase[100], szDate[100], szLogName[100]; sizeof(constLogs); i++)
 {
  
get_time("%Y%m%d"szDatecharsmax(szDate))
  
get_basedir(szBasecharsmax(szBase))
  
  
formatex(szLogNamecharsmax(szLogName), "%s/logs/%s%s"szBaseconstLogs[i], szDate)
  
ArrayPushString(LogsszLogName)
 }


How to check if there is direction AdminCommandsLogs and Kick if there will be writed in itself array like file name.

Last edited by Intouchable; 05-18-2012 at 11:47.
Intouchable 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 00:23.


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