02.06.2014, 12:40
i recommend you use fwrite function for logs
so a stock as you requested will be like this--
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
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;
}
and also file name while using stock should be with its extension ,i.e., .txt/.ini

