How to transfer this to Y_INI? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to transfer this to Y_INI? (
/showthread.php?tid=592025)
How to transfer this to Y_INI? -
DusanInfinity - 19.10.2015
How to transfer this to Y_INI?
PHP код:
public AllCommandLog(string[])
{
new entry[64];
format(entry, sizeof(entry), "%s\r\n",string);
new File:hFile;
hFile = fopen("logs/allcommands.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
Re: How to transfer this to Y_INI? -
DusanInfinity - 21.10.2015
bump
Re: How to transfer this to Y_INI? -
RoboN1X - 21.10.2015
Why would be logs saved in an
INI file?
Re: How to transfer this to Y_INI? -
iShawn - 21.10.2015
Quote:
Originally Posted by DusanInfinity
How to transfer this to Y_INI?
PHP код:
public AllCommandLog(string[])
{
new entry[64];
format(entry, sizeof(entry), "%s\r\n",string);
new File:hFile;
hFile = fopen("logs/allcommands.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
|
Try this:
PHP код:
public AllCommandLog(string[])
{
new entry[64];
format(entry, sizeof(entry), "%s\r\n",string);
new INI:File;
INI:File = INI_Open("logs/allcommands.ini");
INI_WriteString(File, entry);
INI_Close(File);
}
Re: How to transfer this to Y_INI? -
DusanInfinity - 21.10.2015
Quote:
Originally Posted by RoboN1X
|
I don't know.. I think its better and faster than this...
Re: How to transfer this to Y_INI? -
Vince - 21.10.2015
No. It's unnecessary.