Logs save Y_INI
#2

i recommend you use fwrite function for logs
so a stock as you requested will be like this--
pawn Код:
stock Write(file[] , text[])
{
new File:pp=fopen(file,io_append);
fwrite(pp,text);
fwrite(pp,"\r\n");
fclose(pp);
return 1;
}
NOTE - File should exist to write into it otherwise server will crash so make sure file is there
and also file name while using stock should be with its extension ,i.e., .txt/.ini
Reply


Messages In This Thread
Logs save Y_INI - by Need4samp - 02.06.2014, 12:28
Re: Logs save Y_INI - by BroZeus - 02.06.2014, 12:40
Re: Logs save Y_INI - by Need4samp - 02.06.2014, 12:54

Forum Jump:


Users browsing this thread: 1 Guest(s)