22.07.2016, 19:31
COL_WHITE is by convention probably defined as an embedded color code:
Embedded color codes can only be used in the middle of strings, hence them being embedded:
Colors as function arguments must be in their hexadecimal form:
In your case, you should define the color with its hexadecimal value:
PHP код:
{FFFFFF} // white
PHP код:
""COL_WHITE"This is white\n"COL_GREEN"While this is green."
PHP код:
0xFFFFFFFF //white
PHP код:
#define COLOR_WHITE 0xFFFFFFFF