How to transfer this to Y_INI?
#1

How to transfer this to Y_INI?

PHP код:
public AllCommandLog(string[])
{
    new 
entry[64];
    
format(entrysizeof(entry), "%s\r\n",string);
    new 
File:hFile;
    
hFile fopen("logs/allcommands.log"io_append);
    
fwrite(hFileentry);
    
fclose(hFile);

Reply
#2

bump
Reply
#3

Why would be logs saved in an INI file?
Reply
#4

Quote:
Originally Posted by DusanInfinity
Посмотреть сообщение
How to transfer this to Y_INI?

PHP код:
public AllCommandLog(string[])
{
    new 
entry[64];
    
format(entrysizeof(entry), "%s\r\n",string);
    new 
File:hFile;
    
hFile fopen("logs/allcommands.log"io_append);
    
fwrite(hFileentry);
    
fclose(hFile);

Try this:
PHP код:
public AllCommandLog(string[])
{
    new 
entry[64];
    
format(entrysizeof(entry), "%s\r\n",string);
    new 
INI:File;
    
INI:File INI_Open("logs/allcommands.ini");
    
INI_WriteString(Fileentry);
    
INI_Close(File);

Reply
#5

Quote:
Originally Posted by RoboN1X
Посмотреть сообщение
Why would be logs saved in an INI file?
I don't know.. I think its better and faster than this...
Reply
#6

No. It's unnecessary.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)