Quote:
Originally Posted by wahmeng
does this mean i can only replace the colors ??? 
|
Make a new case and pick a letter which isnt already in use. Find out what color you want. For example if you wanted to add purple.
PHP Code:
switch (said[i])
{
case 'r': a = 1
case 'g': a = 2
case 'b': a = 3
case 'y': a = 4
case 'm': a = 5
case 'c': a = 6
case 'o': a = 7
case 'p': a = 8
}
Then you need to have the color added to g_Colors so COL_PURPLE
PHP Code:
new g_Colors[MAX_CLR][] = {"COL_WHITE", "COL_RED", "COL_GREEN", "COL_BLUE", "COL_YELLOW", "COL_MAGENTA", "COL_CYAN", "COL_ORANGE", "COL_OCEAN", "COL_MAROON" , "COL_PURPLE"}
Then you need to find the Red, Green, Blue. or RGB of the color, you can do this by going into paint and looked at advanced colors. 174, 50, 205 (it is a shade of purple pick what you want)
PHP Code:
new g_Values[MAX_CLR][] = {{255, 255, 255}, {255, 0, 0}, {0, 255, 0}, {0, 0, 255}, {255, 255, 0}, {255, 0, 255}, {0, 255, 255}, {227, 96, 8}, {45, 89, 116}, {103, 44, 38} {174, 50, 205}}
and then you have purple. I think. Ha. Never done it before but from what the example was. That is how you change colors.
__________________