Error...
#1

error 027: invalid character constant

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;
}
Please help, thank you.
Reply


Messages In This Thread
Error... - by Whizion - 12.11.2010, 15:30
Respuesta: Error... - by TheChaoz - 12.11.2010, 16:28
Re: Respuesta: Error... - by LarzI - 12.11.2010, 16:39
Re: Respuesta: Error... - by Whizion - 12.11.2010, 17:10
Re: Respuesta: Error... - by The_Moddler - 12.11.2010, 17:30
Re: Error... - by Whizion - 12.11.2010, 19:17

Forum Jump:


Users browsing this thread: 1 Guest(s)