AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Natives (https://forums.alliedmods.net/showthread.php?t=185505)

Intouchable 05-18-2012 11:47

Natives
 
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.


All times are GMT -4. The time now is 00:23.

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