error 027: invalid character constant
#3

Quote:
Originally Posted by Misiur
Посмотреть сообщение
In PAWN single quote (') is used for single characters (try 'A' == 65), and double quote (") for strings. So:
pawn Код:
regex_replace(line, "nextid=\"\\w+\\s\\(\\)\\s\\([0-9]{1,5}\\)\"\\s", "", line, sizeof line);
(Take a note that I escaped double quotes inside the string)

#E:
Updated, you have to escape \ as well.
Thanks!! That solved the problem.

Edit: Pawn Compiled successfully but no replace done when file loaded.
Reply


Messages In This Thread
error 027: invalid character constant - by Emre__ - 23.08.2014, 11:04
Re: error 027: invalid character constant - by Misiur - 23.08.2014, 11:09
Re: error 027: invalid character constant - by Emre__ - 23.08.2014, 11:13

Forum Jump:


Users browsing this thread: 1 Guest(s)