Raised This Month: $ Target: $400
 0% 

help with file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
risontek22
Member
Join Date: Mar 2013
Location: localhost
Old 09-01-2013 , 03:20   help with file
Reply With Quote #1

hello, i want to make log stock. i Tried make this but this doesnt work help pls
PHP Code:
new const g_constLogDirectory[]    = "addons/amxmodx/data/lol/log.txt";

public 
plugin_init()
{
    
lolfile_log(g_constLogDirectory,"HLDS Start....");
}

public 
lolfile_log( const file[], const log[] )
{
    new 
file_index fopen(g_constLogDirectory,"a+");

    new 
log_text[128],log_time[16];
    
    
get_time("%m/%d/%Y - %H:%M:%S",log_time,sizeof(log_time) - 1);
    
    
formatex(log_text,sizeof(log_text) - 1,"%s : %s^n",log_time,log);
    
    
fputs(file_index,log_text);
    
    
fclose(file_index);
    
    return 
0;


Last edited by risontek22; 09-01-2013 at 09:41.
risontek22 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 19:05.


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