04.11.2013, 22:50
(
Последний раз редактировалось SilmiK; 04.11.2013 в 23:33.
)
Fixed it I suppose thanks to ViruZz!
AjailLog(string);
pawn Код:
|
stock AjailLog(string[])
{
new szEntry[256], szFile: logfile;
format(szEntry, sizeof(szEntry), "%s\r\n", string);
if(logfile)
{
fclose(logfile);
}
if(!fexist("GM/Logs/Ajail.log"))
{
logfile = fopen("GM/Logs/Ajail.log", io_write);
}
else {
logfile = fopen("GM/Logs/Ajail.log", io_append);
}
if(logfile)
{
fwrite(logfile, szEntry);
fclose(logfile);
}
return 1;
}
(12862) : warning 213: tag mismatch (12866) : warning 213: tag mismatch (12869) : warning 213: tag mismatch (12874) : warning 213: tag mismatch (12875) : warning 213: tag mismatch |
fclose(logfile); logfile = fopen("GM/Logs/Ajail.log", io_write); logfile = fopen("GM/Logs/Ajail.log", io_append); fwrite(logfile, szEntry); fclose(logfile); |