12.11.2010, 15:30
error 027: invalid character constant
So this is the first time i see this error and i don't know how to fix it:
Please help, thank you.
So this is the first time i see this error and i don't know how to fix it:
pawn Код:
public Log(string[], filename[], player)
{
new h,mi;
gettime(h,mi);
new File:hFile;
new entry[256];
new year, month, day;
getdate(year, month, day);
if(player == 0)
{
format(entry, sizeof(entry), "XRPG\Logs\Global\%s",filename); // Here's the error.
hFile = fopen(entry, io_append);
format(entry, sizeof(entry), "[%02d/%02d/%02d @ %02d:%02d] %s\r\n",day,month,year,h,mi,string);
fwrite(hFile, entry);
fclose(hFile);
}
else
{
format(entry, sizeof(entry), "XRPG\Logs\Player\%s",filename); // And here's the error.
hFile = fopen(entry, io_append);
format(entry, sizeof(entry), "[%02d/%02d/%02d @ %02d:%02d] %s\r\n",day,month,year,h,mi,string);
fwrite(hFile, entry);
fclose(hFile);
}
return 1;
}