29.11.2010, 10:28
Isn't it possible instead of the {FFFFF} to be able to put {COLOR_YELLOW} since we already have them defined in our script. Redefining everything would be awful.
I would suggest this format:
Also there's a little problem, the color embedding things are taking string space.
Like if I have a str[128] string and my chars are 127, if I add color embedding the last letters won't be seen. I need to make the string bigger which costs a lot of memory.
Can this be fixed anyhow?
I would suggest this format:
pawn Код:
format(str,sizeof(str),"{%d}Hello, I am {%d}scottyishere",COLOR_YELLOW,COLOR_GREEN);
Like if I have a str[128] string and my chars are 127, if I add color embedding the last letters won't be seen. I need to make the string bigger which costs a lot of memory.
Can this be fixed anyhow?