Command Crash Server
#3

Quote:
Originally Posted by X337
Посмотреть сообщение
Show us your SaveLogs function.
PHP код:
forward SaveLogs(filename[], text[]);
public 
SaveLogs(filename[], text[])
{
    new 
File:file,
        
line[256],
        
string[256];
    new 
yearmonthday;
    
getdate(yearmonthday);
    
format(linesizeof(line), "Logs/%s.txt"filename);
    
file fopen(lineio_append);
    
format(stringsizeof(string), "[%02d/%02d/%02d] %s\r\n"daymonthyeartext);
    
fwrite(filestring);
    
fclose(file);
    return 
1;

Reply


Messages In This Thread
Command Crash Server - by AfiqIqbal - 08.04.2018, 16:36
Re: Command Crash Server - by X337 - 08.04.2018, 17:10
Re: Command Crash Server - by AfiqIqbal - 08.04.2018, 17:13
Re: Command Crash Server - by X337 - 08.04.2018, 17:32
Re: Command Crash Server - by zookyy - 08.04.2018, 23:56
Re: Command Crash Server - by RogueDrifter - 09.04.2018, 00:06

Forum Jump:


Users browsing this thread: 1 Guest(s)