error 027: invalid character constant
#1

Код:
C:\Users\Admin\Desktop\RPG\gamemodes\N_RPG.pwn(2168) : error 027: invalid character constant
C:\Users\Admin\Desktop\RPG\gamemodes\N_RPG.pwn(2168) : error 027: invalid character constant
C:\Users\Admin\Desktop\RPG\gamemodes\N_RPG.pwn(2170) : error 027: invalid character constant
C:\Users\Admin\Desktop\RPG\gamemodes\N_RPG.pwn(2170) : error 027: invalid character constant
C:\Users\Admin\Desktop\RPG\gamemodes\N_RPG.pwn(2174) : error 027: invalid character constant
C:\Users\Admin\Desktop\RPG\gamemodes\N_RPG.pwn(2174) : error 027: invalid character constant
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
And errors are on:

pawn Код:
public IRC_OnReceiveRaw(botid, message[])
{
    new File:file;
    if (!fexist("IRC\IRC_Log.txt"))
    {
        file = fopen("IRC\IRC_Log.txt", io_write);
    }
    else
    {
        file = fopen("IRC\IRC_Log.txt", io_append);
    }
    if (file)
    {
        fwrite(file, message);
        fwrite(file, "\r\n");
        fclose(file);
    }
    return 1;
}
Thanks
Reply
#2

ahh comment lines 2168 2170 and 2174..
Reply
#3

That stuff is there for a reason... it can't just be commented, I need this IRC stuff logged.
Reply
#4

I think he means, specify which lines EXACTLY are the ones giving the compile errors, not comment out.
Reply
#5

You need to escape the backslashes (with a backslash, isn't that ironic?) like this:

Код:
"IRC\\IRC_Log.txt"
Or use forward slashes, they tend to work as well.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)