help - auto change color message...
#7

The chat is sequential. You can't write on a specific line. Once a message has been sent it can't be altered.

Also you should store colors as integers all the time. You can format them into a string later, for example:

pawn Код:
#define COLOR_RED       0xFF0000AA
#define COLOR_ORANGE    0xFF8000AA
#define COLOR_YELLOW    0xFFFF00AA
#define COLOR_GREEN     0x008000AA
#define COLOR_BLUE      0x0000FFAA
#define COLOR_INDIGO    0x4B0082AA
#define COLOR_VIOLET    0x9400D3AA

new Color[] = {
    COLOR_RED,
    COLOR_ORANGE,
    COLOR_YELLOW,
    COLOR_GREEN,
    COLOR_BLUE,
    COLOR_INDIGO,
    COLOR_VIOLET
};

format(string, sizeof(string), "{%06x}•••••••••{%06x}•••••••••{%06x}•••••••••", Color[random(sizeof(Color))] <<< 8, Color[random(sizeof(Color))] <<< 8, Color[random(sizeof(Color))] <<< 8);
Reply


Messages In This Thread
help - auto change color message... - by _Application_ - 12.12.2014, 12:20
Re: help - auto change color message... - by M4D - 12.12.2014, 12:31
Re: help - auto change color message... - by PowerPC603 - 12.12.2014, 12:35
Re: help - auto change color message... - by _Application_ - 12.12.2014, 12:46
Re: help - auto change color message... - by Raweresh - 12.12.2014, 13:06
Re: help - auto change color message... - by _Application_ - 12.12.2014, 13:20
Re: help - auto change color message... - by Vince - 12.12.2014, 13:31
Re: help - auto change color message... - by _Application_ - 12.12.2014, 14:04
Re: help - auto change color message... - by PowerPC603 - 12.12.2014, 18:55

Forum Jump:


Users browsing this thread: 1 Guest(s)