[Include] The one thousand REAL sa-mp colors
#1

Actually there is only 100 repeated 10 times.

Those "REAL sa-mp colors" are default colors for players who join your server. They are "playerid" dependent. They are stored in and managed by sa-mp client - that is why GetPlayerColor does not work if you do not use SetPlayerColor before.

This simple include file will help you to manage those colors:
pawn Code:
/*
    Author: bartekdvd
    Thanks to: [uL]Pottus, Y_Less
*/


#if !defined samp_colors_included
#define samp_colors_included

stock const samp_colors[100] = {
    0xFF8C13FF,
    0xC715FFFF,
    0x20B2AAFF,
    0xDC143CFF,
    0x6495EDFF,
    0xF0E68CFF,
    0x778899FF,
    0xFF1493FF,
    0xF4A460FF,
    0xEE82EEFF,
    0xFFD720FF,
    0x8B4513FF,
    0x4949A0FF,
    0x148B8BFF,
    0x14FF7FFF,
    0x556B2FFF,
    0x0FD9FAFF,
    0x10DC29FF,
    0x534081FF,
    0x0495CDFF,
    0xEF6CE8FF,
    0xBD34DAFF,
    0x247C1BFF,
    0x0C8E5DFF,
    0x635B03FF,
    0xCB7ED3FF,
    0x65ADEBFF,
    0x5C1ACCFF,
    0xF2F853FF,
    0x11F891FF,
    0x7B39AAFF,
    0x53EB10FF,
    0x54137DFF,
    0x275222FF,
    0xF09F5BFF,
    0x3D0A4FFF,
    0x22F767FF,
    0xD63034FF,
    0x9A6980FF,
    0xDFB935FF,
    0x3793FAFF,
    0x90239DFF,
    0xE9AB2FFF,
    0xAF2FF3FF,
    0x057F94FF,
    0xB98519FF,
    0x388EEAFF,
    0x028151FF,
    0xA55043FF,
    0x0DE018FF,
    0x93AB1CFF,
    0x95BAF0FF,
    0x369976FF,
    0x18F71FFF,
    0x4B8987FF,
    0x491B9EFF,
    0x829DC7FF,
    0xBCE635FF,
    0xCEA6DFFF,
    0x20D4ADFF,
    0x2D74FDFF,
    0x3C1C0DFF,
    0x12D6D4FF,
    0x48C000FF,
    0x2A51E2FF,
    0xE3AC12FF,
    0xFC42A8FF,
    0x2FC827FF,
    0x1A30BFFF,
    0xB740C2FF,
    0x42ACF5FF,
    0x2FD9DEFF,
    0xFAFB71FF,
    0x05D1CDFF,
    0xC471BDFF,
    0x94436EFF,
    0xC1F7ECFF,
    0xCE79EEFF,
    0xBD1EF2FF,
    0x93B7E4FF,
    0x3214AAFF,
    0x184D3BFF,
    0xAE4B99FF,
    0x7E49D7FF,
    0x4C436EFF,
    0xFA24CCFF,
    0xCE76BEFF,
    0xA04E0AFF,
    0x9F945CFF,
    0xDCDE3DFF,
    0x10C9C5FF,
    0x70524DFF,
    0x0BE472FF,
    0x8A2CD7FF,
    0x6152C2FF,
    0xCF72A9FF,
    0xE59338FF,
    0xEEDC2DFF,
    0xD8C762FF,
    0x3FE65CFF
};

stock static HTS(hex, bool:upper = false)
{
    new outBuf[9], i = 0, v;
    new a = (upper ? 'A' : 'a');
    new ShiftRight1, ShiftRight2;
   
    outBuf[0] = '{';
   
    while (i < 6)
    {
        ShiftRight1 = (i << 2);
        ShiftRight2 = (28 - ShiftRight1);
        v = ((hex & (0xf0000000 >>> ShiftRight1)) >>> ShiftRight2);
        outBuf[i + 1] = (v > 9 ? v - 10 + a : v + '0');
        i++;
    }
   
    outBuf[7] = '}';
   
    return outBuf;
}

stock GetPlayerSampColor(playerid)
{
    if (playerid > -1)
        return samp_colors[(playerid%100)];
    return -1;
}

stock GetPlayerSampColorAsText(playerid, bool:upper = false)
{
    new outBuf[9];
    outBuf = HTS(GetPlayerSampColor(playerid), upper);
    return outBuf;
}
#endif
OR

Download: http://pastebin.com/6ihGZrM5

Usage

Use GetPlayerSampColor(playerid) in order to get the real sa-mp color for specified player.

Use GetPlayerSampColorAsText(playerid, bool:upper = false) in order to get the real sa-mp color as text for specified player.

E.g.

pawn Code:
public OnPlayerConnect(playerid)
{
    if (playerid == 0)
    {
        new str[80];
        format(str, sizeof str, "%sThis gonna be orange.", GetPlayerSampColorAsText(playerid));
        SendClientMessage(playerid, -1, str);
        //output: {ff8c13}This gonna be orange.

        format(str, sizeof str, "%sThis gonna be orange too.", GetPlayerSampColorAsText(playerid, false));
        SendClientMessage(playerid, -1, str);
        //output: {FF8C13}This gonna be orange.

        SendClientMessage(playerid, GetPlayerSampColor(playerid), "This gonna be orange again.");
    }

    return 1;
}
Code:
0xFF8C13FF
0xC715FFFF
0x20B2AAFF
0xDC143CFF
0x6495EDFF
0xF0E68CFF
0x778899FF
0xFF1493FF
0xF4A460FF
0xEE82EEFF
0xFFD720FF
0x8B4513FF
0x4949A0FF
0x148B8BFF
0x14FF7FFF
0x556B2FFF
0x0FD9FAFF
0x10DC29FF
0x534081FF
0x0495CDFF
0xEF6CE8FF
0xBD34DAFF
0x247C1BFF
0x0C8E5DFF
0x635B03FF
0xCB7ED3FF
0x65ADEBFF
0x5C1ACCFF
0xF2F853FF
0x11F891FF
0x7B39AAFF
0x53EB10FF
0x54137DFF
0x275222FF
0xF09F5BFF
0x3D0A4FFF
0x22F767FF
0xD63034FF
0x9A6980FF
0xDFB935FF
0x3793FAFF
0x90239DFF
0xE9AB2FFF
0xAF2FF3FF
0x057F94FF
0xB98519FF
0x388EEAFF
0x028151FF
0xA55043FF
0x0DE018FF
0x93AB1CFF
0x95BAF0FF
0x369976FF
0x18F71FFF
0x4B8987FF
0x491B9EFF
0x829DC7FF
0xBCE635FF
0xCEA6DFFF
0x20D4ADFF
0x2D74FDFF
0x3C1C0DFF
0x12D6D4FF
0x48C000FF
0x2A51E2FF
0xE3AC12FF
0xFC42A8FF
0x2FC827FF
0x1A30BFFF
0xB740C2FF
0x42ACF5FF
0x2FD9DEFF
0xFAFB71FF
0x05D1CDFF
0xC471BDFF
0x94436EFF
0xC1F7ECFF
0xCE79EEFF
0xBD1EF2FF
0x93B7E4FF
0x3214AAFF
0x184D3BFF
0xAE4B99FF
0x7E49D7FF
0x4C436EFF
0xFA24CCFF
0xCE76BEFF
0xA04E0AFF
0x9F945CFF
0xDCDE3DFF
0x10C9C5FF
0x70524DFF
0x0BE472FF
0x8A2CD7FF
0x6152C2FF
0xCF72A9FF
0xE59338FF
0xEEDC2DFF
0xD8C762FF
0x3FE65CFF
0xFF8C13FF
0xC715FFFF
0x20B2AAFF
0xDC143CFF
0x6495EDFF
0xF0E68CFF
0x778899FF
0xFF1493FF
0xF4A460FF
0xEE82EEFF
0xFFD720FF
0x8B4513FF
0x4949A0FF
0x148B8BFF
0x14FF7FFF
0x556B2FFF
0x0FD9FAFF
0x10DC29FF
0x534081FF
0x0495CDFF
0xEF6CE8FF
0xBD34DAFF
0x247C1BFF
0x0C8E5DFF
0x635B03FF
0xCB7ED3FF
0x65ADEBFF
0x5C1ACCFF
0xF2F853FF
0x11F891FF
0x7B39AAFF
0x53EB10FF
0x54137DFF
0x275222FF
0xF09F5BFF
0x3D0A4FFF
0x22F767FF
0xD63034FF
0x9A6980FF
0xDFB935FF
0x3793FAFF
0x90239DFF
0xE9AB2FFF
0xAF2FF3FF
0x057F94FF
0xB98519FF
0x388EEAFF
0x028151FF
0xA55043FF
0x0DE018FF
0x93AB1CFF
0x95BAF0FF
0x369976FF
0x18F71FFF
0x4B8987FF
0x491B9EFF
0x829DC7FF
0xBCE635FF
0xCEA6DFFF
0x20D4ADFF
0x2D74FDFF
0x3C1C0DFF
0x12D6D4FF
0x48C000FF
0x2A51E2FF
0xE3AC12FF
0xFC42A8FF
0x2FC827FF
0x1A30BFFF
0xB740C2FF
0x42ACF5FF
0x2FD9DEFF
0xFAFB71FF
0x05D1CDFF
0xC471BDFF
0x94436EFF
0xC1F7ECFF
0xCE79EEFF
0xBD1EF2FF
0x93B7E4FF
0x3214AAFF
0x184D3BFF
0xAE4B99FF
0x7E49D7FF
0x4C436EFF
0xFA24CCFF
0xCE76BEFF
0xA04E0AFF
0x9F945CFF
0xDCDE3DFF
0x10C9C5FF
0x70524DFF
0x0BE472FF
0x8A2CD7FF
0x6152C2FF
0xCF72A9FF
0xE59338FF
0xEEDC2DFF
0xD8C762FF
0x3FE65CFF
0xFF8C13FF
0xC715FFFF
0x20B2AAFF
0xDC143CFF
0x6495EDFF
0xF0E68CFF
0x778899FF
0xFF1493FF
0xF4A460FF
0xEE82EEFF
0xFFD720FF
0x8B4513FF
0x4949A0FF
0x148B8BFF
0x14FF7FFF
0x556B2FFF
0x0FD9FAFF
0x10DC29FF
0x534081FF
0x0495CDFF
0xEF6CE8FF
0xBD34DAFF
0x247C1BFF
0x0C8E5DFF
0x635B03FF
0xCB7ED3FF
0x65ADEBFF
0x5C1ACCFF
0xF2F853FF
0x11F891FF
0x7B39AAFF
0x53EB10FF
0x54137DFF
0x275222FF
0xF09F5BFF
0x3D0A4FFF
0x22F767FF
0xD63034FF
0x9A6980FF
0xDFB935FF
0x3793FAFF
0x90239DFF
0xE9AB2FFF
0xAF2FF3FF
0x057F94FF
0xB98519FF
0x388EEAFF
0x028151FF
0xA55043FF
0x0DE018FF
0x93AB1CFF
0x95BAF0FF
0x369976FF
0x18F71FFF
0x4B8987FF
0x491B9EFF
0x829DC7FF
0xBCE635FF
0xCEA6DFFF
0x20D4ADFF
0x2D74FDFF
0x3C1C0DFF
0x12D6D4FF
0x48C000FF
0x2A51E2FF
0xE3AC12FF
0xFC42A8FF
0x2FC827FF
0x1A30BFFF
0xB740C2FF
0x42ACF5FF
0x2FD9DEFF
0xFAFB71FF
0x05D1CDFF
0xC471BDFF
0x94436EFF
0xC1F7ECFF
0xCE79EEFF
0xBD1EF2FF
0x93B7E4FF
0x3214AAFF
0x184D3BFF
0xAE4B99FF
0x7E49D7FF
0x4C436EFF
0xFA24CCFF
0xCE76BEFF
0xA04E0AFF
0x9F945CFF
0xDCDE3DFF
0x10C9C5FF
0x70524DFF
0x0BE472FF
0x8A2CD7FF
0x6152C2FF
0xCF72A9FF
0xE59338FF
0xEEDC2DFF
0xD8C762FF
0x3FE65CFF
0xFF8C13FF
0xC715FFFF
0x20B2AAFF
0xDC143CFF
0x6495EDFF
0xF0E68CFF
0x778899FF
0xFF1493FF
0xF4A460FF
0xEE82EEFF
0xFFD720FF
0x8B4513FF
0x4949A0FF
0x148B8BFF
0x14FF7FFF
0x556B2FFF
0x0FD9FAFF
0x10DC29FF
0x534081FF
0x0495CDFF
0xEF6CE8FF
0xBD34DAFF
0x247C1BFF
0x0C8E5DFF
0x635B03FF
0xCB7ED3FF
0x65ADEBFF
0x5C1ACCFF
0xF2F853FF
0x11F891FF
0x7B39AAFF
0x53EB10FF
0x54137DFF
0x275222FF
0xF09F5BFF
0x3D0A4FFF
0x22F767FF
0xD63034FF
0x9A6980FF
0xDFB935FF
0x3793FAFF
0x90239DFF
0xE9AB2FFF
0xAF2FF3FF
0x057F94FF
0xB98519FF
0x388EEAFF
0x028151FF
0xA55043FF
0x0DE018FF
0x93AB1CFF
0x95BAF0FF
0x369976FF
0x18F71FFF
0x4B8987FF
0x491B9EFF
0x829DC7FF
0xBCE635FF
0xCEA6DFFF
0x20D4ADFF
0x2D74FDFF
0x3C1C0DFF
0x12D6D4FF
0x48C000FF
0x2A51E2FF
0xE3AC12FF
0xFC42A8FF
0x2FC827FF
0x1A30BFFF
0xB740C2FF
0x42ACF5FF
0x2FD9DEFF
0xFAFB71FF
0x05D1CDFF
0xC471BDFF
0x94436EFF
0xC1F7ECFF
0xCE79EEFF
0xBD1EF2FF
0x93B7E4FF
0x3214AAFF
0x184D3BFF
0xAE4B99FF
0x7E49D7FF
0x4C436EFF
0xFA24CCFF
0xCE76BEFF
0xA04E0AFF
0x9F945CFF
0xDCDE3DFF
0x10C9C5FF
0x70524DFF
0x0BE472FF
0x8A2CD7FF
0x6152C2FF
0xCF72A9FF
0xE59338FF
0xEEDC2DFF
0xD8C762FF
0x3FE65CFF
0xFF8C13FF
0xC715FFFF
0x20B2AAFF
0xDC143CFF
0x6495EDFF
0xF0E68CFF
0x778899FF
0xFF1493FF
0xF4A460FF
0xEE82EEFF
0xFFD720FF
0x8B4513FF
0x4949A0FF
0x148B8BFF
0x14FF7FFF
0x556B2FFF
0x0FD9FAFF
0x10DC29FF
0x534081FF
0x0495CDFF
0xEF6CE8FF
0xBD34DAFF
0x247C1BFF
0x0C8E5DFF
0x635B03FF
0xCB7ED3FF
0x65ADEBFF
0x5C1ACCFF
0xF2F853FF
0x11F891FF
0x7B39AAFF
0x53EB10FF
0x54137DFF
0x275222FF
0xF09F5BFF
0x3D0A4FFF
0x22F767FF
0xD63034FF
0x9A6980FF
0xDFB935FF
0x3793FAFF
0x90239DFF
0xE9AB2FFF
0xAF2FF3FF
0x057F94FF
0xB98519FF
0x388EEAFF
0x028151FF
0xA55043FF
0x0DE018FF
0x93AB1CFF
0x95BAF0FF
0x369976FF
0x18F71FFF
0x4B8987FF
0x491B9EFF
0x829DC7FF
0xBCE635FF
0xCEA6DFFF
0x20D4ADFF
0x2D74FDFF
0x3C1C0DFF
0x12D6D4FF
0x48C000FF
0x2A51E2FF
0xE3AC12FF
0xFC42A8FF
0x2FC827FF
0x1A30BFFF
0xB740C2FF
0x42ACF5FF
0x2FD9DEFF
0xFAFB71FF
0x05D1CDFF
0xC471BDFF
0x94436EFF
0xC1F7ECFF
0xCE79EEFF
0xBD1EF2FF
0x93B7E4FF
0x3214AAFF
0x184D3BFF
0xAE4B99FF
0x7E49D7FF
0x4C436EFF
0xFA24CCFF
0xCE76BEFF
0xA04E0AFF
0x9F945CFF
0xDCDE3DFF
0x10C9C5FF
0x70524DFF
0x0BE472FF
0x8A2CD7FF
0x6152C2FF
0xCF72A9FF
0xE59338FF
0xEEDC2DFF
0xD8C762FF
0x3FE65CFF
0xFF8C13FF
0xC715FFFF
0x20B2AAFF
0xDC143CFF
0x6495EDFF
0xF0E68CFF
0x778899FF
0xFF1493FF
0xF4A460FF
0xEE82EEFF
0xFFD720FF
0x8B4513FF
0x4949A0FF
0x148B8BFF
0x14FF7FFF
0x556B2FFF
0x0FD9FAFF
0x10DC29FF
0x534081FF
0x0495CDFF
0xEF6CE8FF
0xBD34DAFF
0x247C1BFF
0x0C8E5DFF
0x635B03FF
0xCB7ED3FF
0x65ADEBFF
0x5C1ACCFF
0xF2F853FF
0x11F891FF
0x7B39AAFF
0x53EB10FF
0x54137DFF
0x275222FF
0xF09F5BFF
0x3D0A4FFF
0x22F767FF
0xD63034FF
0x9A6980FF
0xDFB935FF
0x3793FAFF
0x90239DFF
0xE9AB2FFF
0xAF2FF3FF
0x057F94FF
0xB98519FF
0x388EEAFF
0x028151FF
0xA55043FF
0x0DE018FF
0x93AB1CFF
0x95BAF0FF
0x369976FF
0x18F71FFF
0x4B8987FF
0x491B9EFF
0x829DC7FF
0xBCE635FF
0xCEA6DFFF
0x20D4ADFF
0x2D74FDFF
0x3C1C0DFF
0x12D6D4FF
0x48C000FF
0x2A51E2FF
0xE3AC12FF
0xFC42A8FF
0x2FC827FF
0x1A30BFFF
0xB740C2FF
0x42ACF5FF
0x2FD9DEFF
0xFAFB71FF
0x05D1CDFF
0xC471BDFF
0x94436EFF
0xC1F7ECFF
0xCE79EEFF
0xBD1EF2FF
0x93B7E4FF
0x3214AAFF
0x184D3BFF
0xAE4B99FF
0x7E49D7FF
0x4C436EFF
0xFA24CCFF
0xCE76BEFF
0xA04E0AFF
0x9F945CFF
0xDCDE3DFF
0x10C9C5FF
0x70524DFF
0x0BE472FF
0x8A2CD7FF
0x6152C2FF
0xCF72A9FF
0xE59338FF
0xEEDC2DFF
0xD8C762FF
0x3FE65CFF
0xFF8C13FF
0xC715FFFF
0x20B2AAFF
0xDC143CFF
0x6495EDFF
0xF0E68CFF
0x778899FF
0xFF1493FF
0xF4A460FF
0xEE82EEFF
0xFFD720FF
0x8B4513FF
0x4949A0FF
0x148B8BFF
0x14FF7FFF
0x556B2FFF
0x0FD9FAFF
0x10DC29FF
0x534081FF
0x0495CDFF
0xEF6CE8FF
0xBD34DAFF
0x247C1BFF
0x0C8E5DFF
0x635B03FF
0xCB7ED3FF
0x65ADEBFF
0x5C1ACCFF
0xF2F853FF
0x11F891FF
0x7B39AAFF
0x53EB10FF
0x54137DFF
0x275222FF
0xF09F5BFF
0x3D0A4FFF
0x22F767FF
0xD63034FF
0x9A6980FF
0xDFB935FF
0x3793FAFF
0x90239DFF
0xE9AB2FFF
0xAF2FF3FF
0x057F94FF
0xB98519FF
0x388EEAFF
0x028151FF
0xA55043FF
0x0DE018FF
0x93AB1CFF
0x95BAF0FF
0x369976FF
0x18F71FFF
0x4B8987FF
0x491B9EFF
0x829DC7FF
0xBCE635FF
0xCEA6DFFF
0x20D4ADFF
0x2D74FDFF
0x3C1C0DFF
0x12D6D4FF
0x48C000FF
0x2A51E2FF
0xE3AC12FF
0xFC42A8FF
0x2FC827FF
0x1A30BFFF
0xB740C2FF
0x42ACF5FF
0x2FD9DEFF
0xFAFB71FF
0x05D1CDFF
0xC471BDFF
0x94436EFF
0xC1F7ECFF
0xCE79EEFF
0xBD1EF2FF
0x93B7E4FF
0x3214AAFF
0x184D3BFF
0xAE4B99FF
0x7E49D7FF
0x4C436EFF
0xFA24CCFF
0xCE76BEFF
0xA04E0AFF
0x9F945CFF
0xDCDE3DFF
0x10C9C5FF
0x70524DFF
0x0BE472FF
0x8A2CD7FF
0x6152C2FF
0xCF72A9FF
0xE59338FF
0xEEDC2DFF
0xD8C762FF
0x3FE65CFF
0xFF8C13FF
0xC715FFFF
0x20B2AAFF
0xDC143CFF
0x6495EDFF
0xF0E68CFF
0x778899FF
0xFF1493FF
0xF4A460FF
0xEE82EEFF
0xFFD720FF
0x8B4513FF
0x4949A0FF
0x148B8BFF
0x14FF7FFF
0x556B2FFF
0x0FD9FAFF
0x10DC29FF
0x534081FF
0x0495CDFF
0xEF6CE8FF
0xBD34DAFF
0x247C1BFF
0x0C8E5DFF
0x635B03FF
0xCB7ED3FF
0x65ADEBFF
0x5C1ACCFF
0xF2F853FF
0x11F891FF
0x7B39AAFF
0x53EB10FF
0x54137DFF
0x275222FF
0xF09F5BFF
0x3D0A4FFF
0x22F767FF
0xD63034FF
0x9A6980FF
0xDFB935FF
0x3793FAFF
0x90239DFF
0xE9AB2FFF
0xAF2FF3FF
0x057F94FF
0xB98519FF
0x388EEAFF
0x028151FF
0xA55043FF
0x0DE018FF
0x93AB1CFF
0x95BAF0FF
0x369976FF
0x18F71FFF
0x4B8987FF
0x491B9EFF
0x829DC7FF
0xBCE635FF
0xCEA6DFFF
0x20D4ADFF
0x2D74FDFF
0x3C1C0DFF
0x12D6D4FF
0x48C000FF
0x2A51E2FF
0xE3AC12FF
0xFC42A8FF
0x2FC827FF
0x1A30BFFF
0xB740C2FF
0x42ACF5FF
0x2FD9DEFF
0xFAFB71FF
0x05D1CDFF
0xC471BDFF
0x94436EFF
0xC1F7ECFF
0xCE79EEFF
0xBD1EF2FF
0x93B7E4FF
0x3214AAFF
0x184D3BFF
0xAE4B99FF
0x7E49D7FF
0x4C436EFF
0xFA24CCFF
0xCE76BEFF
0xA04E0AFF
0x9F945CFF
0xDCDE3DFF
0x10C9C5FF
0x70524DFF
0x0BE472FF
0x8A2CD7FF
0x6152C2FF
0xCF72A9FF
0xE59338FF
0xEEDC2DFF
0xD8C762FF
0x3FE65CFF
0xFF8C13FF
0xC715FFFF
0x20B2AAFF
0xDC143CFF
0x6495EDFF
0xF0E68CFF
0x778899FF
0xFF1493FF
0xF4A460FF
0xEE82EEFF
0xFFD720FF
0x8B4513FF
0x4949A0FF
0x148B8BFF
0x14FF7FFF
0x556B2FFF
0x0FD9FAFF
0x10DC29FF
0x534081FF
0x0495CDFF
0xEF6CE8FF
0xBD34DAFF
0x247C1BFF
0x0C8E5DFF
0x635B03FF
0xCB7ED3FF
0x65ADEBFF
0x5C1ACCFF
0xF2F853FF
0x11F891FF
0x7B39AAFF
0x53EB10FF
0x54137DFF
0x275222FF
0xF09F5BFF
0x3D0A4FFF
0x22F767FF
0xD63034FF
0x9A6980FF
0xDFB935FF
0x3793FAFF
0x90239DFF
0xE9AB2FFF
0xAF2FF3FF
0x057F94FF
0xB98519FF
0x388EEAFF
0x028151FF
0xA55043FF
0x0DE018FF
0x93AB1CFF
0x95BAF0FF
0x369976FF
0x18F71FFF
0x4B8987FF
0x491B9EFF
0x829DC7FF
0xBCE635FF
0xCEA6DFFF
0x20D4ADFF
0x2D74FDFF
0x3C1C0DFF
0x12D6D4FF
0x48C000FF
0x2A51E2FF
0xE3AC12FF
0xFC42A8FF
0x2FC827FF
0x1A30BFFF
0xB740C2FF
0x42ACF5FF
0x2FD9DEFF
0xFAFB71FF
0x05D1CDFF
0xC471BDFF
0x94436EFF
0xC1F7ECFF
0xCE79EEFF
0xBD1EF2FF
0x93B7E4FF
0x3214AAFF
0x184D3BFF
0xAE4B99FF
0x7E49D7FF
0x4C436EFF
0xFA24CCFF
0xCE76BEFF
0xA04E0AFF
0x9F945CFF
0xDCDE3DFF
0x10C9C5FF
0x70524DFF
0x0BE472FF
0x8A2CD7FF
0x6152C2FF
0xCF72A9FF
0xE59338FF
0xEEDC2DFF
0xD8C762FF
0x3FE65CFF
0xFF8C13FF
0xC715FFFF
0x20B2AAFF
0xDC143CFF
0x6495EDFF
0xF0E68CFF
0x778899FF
0xFF1493FF
0xF4A460FF
0xEE82EEFF
0xFFD720FF
0x8B4513FF
0x4949A0FF
0x148B8BFF
0x14FF7FFF
0x556B2FFF
0x0FD9FAFF
0x10DC29FF
0x534081FF
0x0495CDFF
0xEF6CE8FF
0xBD34DAFF
0x247C1BFF
0x0C8E5DFF
0x635B03FF
0xCB7ED3FF
0x65ADEBFF
0x5C1ACCFF
0xF2F853FF
0x11F891FF
0x7B39AAFF
0x53EB10FF
0x54137DFF
0x275222FF
0xF09F5BFF
0x3D0A4FFF
0x22F767FF
0xD63034FF
0x9A6980FF
0xDFB935FF
0x3793FAFF
0x90239DFF
0xE9AB2FFF
0xAF2FF3FF
0x057F94FF
0xB98519FF
0x388EEAFF
0x028151FF
0xA55043FF
0x0DE018FF
0x93AB1CFF
0x95BAF0FF
0x369976FF
0x18F71FFF
0x4B8987FF
0x491B9EFF
0x829DC7FF
0xBCE635FF
0xCEA6DFFF
0x20D4ADFF
0x2D74FDFF
0x3C1C0DFF
0x12D6D4FF
0x48C000FF
0x2A51E2FF
0xE3AC12FF
0xFC42A8FF
0x2FC827FF
0x1A30BFFF
0xB740C2FF
0x42ACF5FF
0x2FD9DEFF
0xFAFB71FF
0x05D1CDFF
0xC471BDFF
0x94436EFF
0xC1F7ECFF
0xCE79EEFF
0xBD1EF2FF
0x93B7E4FF
0x3214AAFF
0x184D3BFF
0xAE4B99FF
0x7E49D7FF
0x4C436EFF
0xFA24CCFF
0xCE76BEFF
0xA04E0AFF
0x9F945CFF
0xDCDE3DFF
0x10C9C5FF
0x70524DFF
0x0BE472FF
0x8A2CD7FF
0x6152C2FF
0xCF72A9FF
0xE59338FF
0xEEDC2DFF
0xD8C762FF
0x3FE65CFF
EDIT:
I think I've posted this somehow in wrong section.
Reply
#2

I really don't know why you would have any problems putting this into an array why the need for the loading of files? It is completely unneeded so I re-wrote it for fun why not do it like this.

Simple include, no extra files, no extra functions, no bullshit.

pawn Code:
stock const PlayerColors[1000] = {
    0xFF8C13FF,
    0xC715FFFF,
    0x20B2AAFF,
    0xDC143CFF,
    0x6495EDFF,
    0xF0E68CFF,
    0x778899FF,
    0xFF1493FF,
    0xF4A460FF,
    0xEE82EEFF,
    0xFFD720FF,
    0x8B4513FF,
    0x4949A0FF,
    0x148B8BFF,
    0x14FF7FFF,
    0x556B2FFF,
    0x0FD9FAFF,
    0x10DC29FF,
    0x534081FF,
    0x0495CDFF,
    0xEF6CE8FF,
    0xBD34DAFF,
    0x247C1BFF,
    0x0C8E5DFF,
    0x635B03FF,
    0xCB7ED3FF,
    0x65ADEBFF,
    0x5C1ACCFF,
    0xF2F853FF,
    0x11F891FF,
    0x7B39AAFF,
    0x53EB10FF,
    0x54137DFF,
    0x275222FF,
    0xF09F5BFF,
    0x3D0A4FFF,
    0x22F767FF,
    0xD63034FF,
    0x9A6980FF,
    0xDFB935FF,
    0x3793FAFF,
    0x90239DFF,
    0xE9AB2FFF,
    0xAF2FF3FF,
    0x057F94FF,
    0xB98519FF,
    0x388EEAFF,
    0x028151FF,
    0xA55043FF,
    0x0DE018FF,
    0x93AB1CFF,
    0x95BAF0FF,
    0x369976FF,
    0x18F71FFF,
    0x4B8987FF,
    0x491B9EFF,
    0x829DC7FF,
    0xBCE635FF,
    0xCEA6DFFF,
    0x20D4ADFF,
    0x2D74FDFF,
    0x3C1C0DFF,
    0x12D6D4FF,
    0x48C000FF,
    0x2A51E2FF,
    0xE3AC12FF,
    0xFC42A8FF,
    0x2FC827FF,
    0x1A30BFFF,
    0xB740C2FF,
    0x42ACF5FF,
    0x2FD9DEFF,
    0xFAFB71FF,
    0x05D1CDFF,
    0xC471BDFF,
    0x94436EFF,
    0xC1F7ECFF,
    0xCE79EEFF,
    0xBD1EF2FF,
    0x93B7E4FF,
    0x3214AAFF,
    0x184D3BFF,
    0xAE4B99FF,
    0x7E49D7FF,
    0x4C436EFF,
    0xFA24CCFF,
    0xCE76BEFF,
    0xA04E0AFF,
    0x9F945CFF,
    0xDCDE3DFF,
    0x10C9C5FF,
    0x70524DFF,
    0x0BE472FF,
    0x8A2CD7FF,
    0x6152C2FF,
    0xCF72A9FF,
    0xE59338FF,
    0xEEDC2DFF,
    0xD8C762FF,
    0x3FE65CFF,
    0xFF8C13FF,
    0xC715FFFF,
    0x20B2AAFF,
    0xDC143CFF,
    0x6495EDFF,
    0xF0E68CFF,
    0x778899FF,
    0xFF1493FF,
    0xF4A460FF,
    0xEE82EEFF,
    0xFFD720FF,
    0x8B4513FF,
    0x4949A0FF,
    0x148B8BFF,
    0x14FF7FFF,
    0x556B2FFF,
    0x0FD9FAFF,
    0x10DC29FF,
    0x534081FF,
    0x0495CDFF,
    0xEF6CE8FF,
    0xBD34DAFF,
    0x247C1BFF,
    0x0C8E5DFF,
    0x635B03FF,
    0xCB7ED3FF,
    0x65ADEBFF,
    0x5C1ACCFF,
    0xF2F853FF,
    0x11F891FF,
    0x7B39AAFF,
    0x53EB10FF,
    0x54137DFF,
    0x275222FF,
    0xF09F5BFF,
    0x3D0A4FFF,
    0x22F767FF,
    0xD63034FF,
    0x9A6980FF,
    0xDFB935FF,
    0x3793FAFF,
    0x90239DFF,
    0xE9AB2FFF,
    0xAF2FF3FF,
    0x057F94FF,
    0xB98519FF,
    0x388EEAFF,
    0x028151FF,
    0xA55043FF,
    0x0DE018FF,
    0x93AB1CFF,
    0x95BAF0FF,
    0x369976FF,
    0x18F71FFF,
    0x4B8987FF,
    0x491B9EFF,
    0x829DC7FF,
    0xBCE635FF,
    0xCEA6DFFF,
    0x20D4ADFF,
    0x2D74FDFF,
    0x3C1C0DFF,
    0x12D6D4FF,
    0x48C000FF,
    0x2A51E2FF,
    0xE3AC12FF,
    0xFC42A8FF,
    0x2FC827FF,
    0x1A30BFFF,
    0xB740C2FF,
    0x42ACF5FF,
    0x2FD9DEFF,
    0xFAFB71FF,
    0x05D1CDFF,
    0xC471BDFF,
    0x94436EFF,
    0xC1F7ECFF,
    0xCE79EEFF,
    0xBD1EF2FF,
    0x93B7E4FF,
    0x3214AAFF,
    0x184D3BFF,
    0xAE4B99FF,
    0x7E49D7FF,
    0x4C436EFF,
    0xFA24CCFF,
    0xCE76BEFF,
    0xA04E0AFF,
    0x9F945CFF,
    0xDCDE3DFF,
    0x10C9C5FF,
    0x70524DFF,
    0x0BE472FF,
    0x8A2CD7FF,
    0x6152C2FF,
    0xCF72A9FF,
    0xE59338FF,
    0xEEDC2DFF,
    0xD8C762FF,
    0x3FE65CFF,
    0xFF8C13FF,
    0xC715FFFF,
    0x20B2AAFF,
    0xDC143CFF,
    0x6495EDFF,
    0xF0E68CFF,
    0x778899FF,
    0xFF1493FF,
    0xF4A460FF,
    0xEE82EEFF,
    0xFFD720FF,
    0x8B4513FF,
    0x4949A0FF,
    0x148B8BFF,
    0x14FF7FFF,
    0x556B2FFF,
    0x0FD9FAFF,
    0x10DC29FF,
    0x534081FF,
    0x0495CDFF,
    0xEF6CE8FF,
    0xBD34DAFF,
    0x247C1BFF,
    0x0C8E5DFF,
    0x635B03FF,
    0xCB7ED3FF,
    0x65ADEBFF,
    0x5C1ACCFF,
    0xF2F853FF,
    0x11F891FF,
    0x7B39AAFF,
    0x53EB10FF,
    0x54137DFF,
    0x275222FF,
    0xF09F5BFF,
    0x3D0A4FFF,
    0x22F767FF,
    0xD63034FF,
    0x9A6980FF,
    0xDFB935FF,
    0x3793FAFF,
    0x90239DFF,
    0xE9AB2FFF,
    0xAF2FF3FF,
    0x057F94FF,
    0xB98519FF,
    0x388EEAFF,
    0x028151FF,
    0xA55043FF,
    0x0DE018FF,
    0x93AB1CFF,
    0x95BAF0FF,
    0x369976FF,
    0x18F71FFF,
    0x4B8987FF,
    0x491B9EFF,
    0x829DC7FF,
    0xBCE635FF,
    0xCEA6DFFF,
    0x20D4ADFF,
    0x2D74FDFF,
    0x3C1C0DFF,
    0x12D6D4FF,
    0x48C000FF,
    0x2A51E2FF,
    0xE3AC12FF,
    0xFC42A8FF,
    0x2FC827FF,
    0x1A30BFFF,
    0xB740C2FF,
    0x42ACF5FF,
    0x2FD9DEFF,
    0xFAFB71FF,
    0x05D1CDFF,
    0xC471BDFF,
    0x94436EFF,
    0xC1F7ECFF,
    0xCE79EEFF,
    0xBD1EF2FF,
    0x93B7E4FF,
    0x3214AAFF,
    0x184D3BFF,
    0xAE4B99FF,
    0x7E49D7FF,
    0x4C436EFF,
    0xFA24CCFF,
    0xCE76BEFF,
    0xA04E0AFF,
    0x9F945CFF,
    0xDCDE3DFF,
    0x10C9C5FF,
    0x70524DFF,
    0x0BE472FF,
    0x8A2CD7FF,
    0x6152C2FF,
    0xCF72A9FF,
    0xE59338FF,
    0xEEDC2DFF,
    0xD8C762FF,
    0x3FE65CFF,
    0xFF8C13FF,
    0xC715FFFF,
    0x20B2AAFF,
    0xDC143CFF,
    0x6495EDFF,
    0xF0E68CFF,
    0x778899FF,
    0xFF1493FF,
    0xF4A460FF,
    0xEE82EEFF,
    0xFFD720FF,
    0x8B4513FF,
    0x4949A0FF,
    0x148B8BFF,
    0x14FF7FFF,
    0x556B2FFF,
    0x0FD9FAFF,
    0x10DC29FF,
    0x534081FF,
    0x0495CDFF,
    0xEF6CE8FF,
    0xBD34DAFF,
    0x247C1BFF,
    0x0C8E5DFF,
    0x635B03FF,
    0xCB7ED3FF,
    0x65ADEBFF,
    0x5C1ACCFF,
    0xF2F853FF,
    0x11F891FF,
    0x7B39AAFF,
    0x53EB10FF,
    0x54137DFF,
    0x275222FF,
    0xF09F5BFF,
    0x3D0A4FFF,
    0x22F767FF,
    0xD63034FF,
    0x9A6980FF,
    0xDFB935FF,
    0x3793FAFF,
    0x90239DFF,
    0xE9AB2FFF,
    0xAF2FF3FF,
    0x057F94FF,
    0xB98519FF,
    0x388EEAFF,
    0x028151FF,
    0xA55043FF,
    0x0DE018FF,
    0x93AB1CFF,
    0x95BAF0FF,
    0x369976FF,
    0x18F71FFF,
    0x4B8987FF,
    0x491B9EFF,
    0x829DC7FF,
    0xBCE635FF,
    0xCEA6DFFF,
    0x20D4ADFF,
    0x2D74FDFF,
    0x3C1C0DFF,
    0x12D6D4FF,
    0x48C000FF,
    0x2A51E2FF,
    0xE3AC12FF,
    0xFC42A8FF,
    0x2FC827FF,
    0x1A30BFFF,
    0xB740C2FF,
    0x42ACF5FF,
    0x2FD9DEFF,
    0xFAFB71FF,
    0x05D1CDFF,
    0xC471BDFF,
    0x94436EFF,
    0xC1F7ECFF,
    0xCE79EEFF,
    0xBD1EF2FF,
    0x93B7E4FF,
    0x3214AAFF,
    0x184D3BFF,
    0xAE4B99FF,
    0x7E49D7FF,
    0x4C436EFF,
    0xFA24CCFF,
    0xCE76BEFF,
    0xA04E0AFF,
    0x9F945CFF,
    0xDCDE3DFF,
    0x10C9C5FF,
    0x70524DFF,
    0x0BE472FF,
    0x8A2CD7FF,
    0x6152C2FF,
    0xCF72A9FF,
    0xE59338FF,
    0xEEDC2DFF,
    0xD8C762FF,
    0x3FE65CFF,
    0xFF8C13FF,
    0xC715FFFF,
    0x20B2AAFF,
    0xDC143CFF,
    0x6495EDFF,
    0xF0E68CFF,
    0x778899FF,
    0xFF1493FF,
    0xF4A460FF,
    0xEE82EEFF,
    0xFFD720FF,
    0x8B4513FF,
    0x4949A0FF,
    0x148B8BFF,
    0x14FF7FFF,
    0x556B2FFF,
    0x0FD9FAFF,
    0x10DC29FF,
    0x534081FF,
    0x0495CDFF,
    0xEF6CE8FF,
    0xBD34DAFF,
    0x247C1BFF,
    0x0C8E5DFF,
    0x635B03FF,
    0xCB7ED3FF,
    0x65ADEBFF,
    0x5C1ACCFF,
    0xF2F853FF,
    0x11F891FF,
    0x7B39AAFF,
    0x53EB10FF,
    0x54137DFF,
    0x275222FF,
    0xF09F5BFF,
    0x3D0A4FFF,
    0x22F767FF,
    0xD63034FF,
    0x9A6980FF,
    0xDFB935FF,
    0x3793FAFF,
    0x90239DFF,
    0xE9AB2FFF,
    0xAF2FF3FF,
    0x057F94FF,
    0xB98519FF,
    0x388EEAFF,
    0x028151FF,
    0xA55043FF,
    0x0DE018FF,
    0x93AB1CFF,
    0x95BAF0FF,
    0x369976FF,
    0x18F71FFF,
    0x4B8987FF,
    0x491B9EFF,
    0x829DC7FF,
    0xBCE635FF,
    0xCEA6DFFF,
    0x20D4ADFF,
    0x2D74FDFF,
    0x3C1C0DFF,
    0x12D6D4FF,
    0x48C000FF,
    0x2A51E2FF,
    0xE3AC12FF,
    0xFC42A8FF,
    0x2FC827FF,
    0x1A30BFFF,
    0xB740C2FF,
    0x42ACF5FF,
    0x2FD9DEFF,
    0xFAFB71FF,
    0x05D1CDFF,
    0xC471BDFF,
    0x94436EFF,
    0xC1F7ECFF,
    0xCE79EEFF,
    0xBD1EF2FF,
    0x93B7E4FF,
    0x3214AAFF,
    0x184D3BFF,
    0xAE4B99FF,
    0x7E49D7FF,
    0x4C436EFF,
    0xFA24CCFF,
    0xCE76BEFF,
    0xA04E0AFF,
    0x9F945CFF,
    0xDCDE3DFF,
    0x10C9C5FF,
    0x70524DFF,
    0x0BE472FF,
    0x8A2CD7FF,
    0x6152C2FF,
    0xCF72A9FF,
    0xE59338FF,
    0xEEDC2DFF,
    0xD8C762FF,
    0x3FE65CFF,
    0xFF8C13FF,
    0xC715FFFF,
    0x20B2AAFF,
    0xDC143CFF,
    0x6495EDFF,
    0xF0E68CFF,
    0x778899FF,
    0xFF1493FF,
    0xF4A460FF,
    0xEE82EEFF,
    0xFFD720FF,
    0x8B4513FF,
    0x4949A0FF,
    0x148B8BFF,
    0x14FF7FFF,
    0x556B2FFF,
    0x0FD9FAFF,
    0x10DC29FF,
    0x534081FF,
    0x0495CDFF,
    0xEF6CE8FF,
    0xBD34DAFF,
    0x247C1BFF,
    0x0C8E5DFF,
    0x635B03FF,
    0xCB7ED3FF,
    0x65ADEBFF,
    0x5C1ACCFF,
    0xF2F853FF,
    0x11F891FF,
    0x7B39AAFF,
    0x53EB10FF,
    0x54137DFF,
    0x275222FF,
    0xF09F5BFF,
    0x3D0A4FFF,
    0x22F767FF,
    0xD63034FF,
    0x9A6980FF,
    0xDFB935FF,
    0x3793FAFF,
    0x90239DFF,
    0xE9AB2FFF,
    0xAF2FF3FF,
    0x057F94FF,
    0xB98519FF,
    0x388EEAFF,
    0x028151FF,
    0xA55043FF,
    0x0DE018FF,
    0x93AB1CFF,
    0x95BAF0FF,
    0x369976FF,
    0x18F71FFF,
    0x4B8987FF,
    0x491B9EFF,
    0x829DC7FF,
    0xBCE635FF,
    0xCEA6DFFF,
    0x20D4ADFF,
    0x2D74FDFF,
    0x3C1C0DFF,
    0x12D6D4FF,
    0x48C000FF,
    0x2A51E2FF,
    0xE3AC12FF,
    0xFC42A8FF,
    0x2FC827FF,
    0x1A30BFFF,
    0xB740C2FF,
    0x42ACF5FF,
    0x2FD9DEFF,
    0xFAFB71FF,
    0x05D1CDFF,
    0xC471BDFF,
    0x94436EFF,
    0xC1F7ECFF,
    0xCE79EEFF,
    0xBD1EF2FF,
    0x93B7E4FF,
    0x3214AAFF,
    0x184D3BFF,
    0xAE4B99FF,
    0x7E49D7FF,
    0x4C436EFF,
    0xFA24CCFF,
    0xCE76BEFF,
    0xA04E0AFF,
    0x9F945CFF,
    0xDCDE3DFF,
    0x10C9C5FF,
    0x70524DFF,
    0x0BE472FF,
    0x8A2CD7FF,
    0x6152C2FF,
    0xCF72A9FF,
    0xE59338FF,
    0xEEDC2DFF,
    0xD8C762FF,
    0x3FE65CFF,
    0xFF8C13FF,
    0xC715FFFF,
    0x20B2AAFF,
    0xDC143CFF,
    0x6495EDFF,
    0xF0E68CFF,
    0x778899FF,
    0xFF1493FF,
    0xF4A460FF,
    0xEE82EEFF,
    0xFFD720FF,
    0x8B4513FF,
    0x4949A0FF,
    0x148B8BFF,
    0x14FF7FFF,
    0x556B2FFF,
    0x0FD9FAFF,
    0x10DC29FF,
    0x534081FF,
    0x0495CDFF,
    0xEF6CE8FF,
    0xBD34DAFF,
    0x247C1BFF,
    0x0C8E5DFF,
    0x635B03FF,
    0xCB7ED3FF,
    0x65ADEBFF,
    0x5C1ACCFF,
    0xF2F853FF,
    0x11F891FF,
    0x7B39AAFF,
    0x53EB10FF,
    0x54137DFF,
    0x275222FF,
    0xF09F5BFF,
    0x3D0A4FFF,
    0x22F767FF,
    0xD63034FF,
    0x9A6980FF,
    0xDFB935FF,
    0x3793FAFF,
    0x90239DFF,
    0xE9AB2FFF,
    0xAF2FF3FF,
    0x057F94FF,
    0xB98519FF,
    0x388EEAFF,
    0x028151FF,
    0xA55043FF,
    0x0DE018FF,
    0x93AB1CFF,
    0x95BAF0FF,
    0x369976FF,
    0x18F71FFF,
    0x4B8987FF,
    0x491B9EFF,
    0x829DC7FF,
    0xBCE635FF,
    0xCEA6DFFF,
    0x20D4ADFF,
    0x2D74FDFF,
    0x3C1C0DFF,
    0x12D6D4FF,
    0x48C000FF,
    0x2A51E2FF,
    0xE3AC12FF,
    0xFC42A8FF,
    0x2FC827FF,
    0x1A30BFFF,
    0xB740C2FF,
    0x42ACF5FF,
    0x2FD9DEFF,
    0xFAFB71FF,
    0x05D1CDFF,
    0xC471BDFF,
    0x94436EFF,
    0xC1F7ECFF,
    0xCE79EEFF,
    0xBD1EF2FF,
    0x93B7E4FF,
    0x3214AAFF,
    0x184D3BFF,
    0xAE4B99FF,
    0x7E49D7FF,
    0x4C436EFF,
    0xFA24CCFF,
    0xCE76BEFF,
    0xA04E0AFF,
    0x9F945CFF,
    0xDCDE3DFF,
    0x10C9C5FF,
    0x70524DFF,
    0x0BE472FF,
    0x8A2CD7FF,
    0x6152C2FF,
    0xCF72A9FF,
    0xE59338FF,
    0xEEDC2DFF,
    0xD8C762FF,
    0x3FE65CFF,
    0xFF8C13FF,
    0xC715FFFF,
    0x20B2AAFF,
    0xDC143CFF,
    0x6495EDFF,
    0xF0E68CFF,
    0x778899FF,
    0xFF1493FF,
    0xF4A460FF,
    0xEE82EEFF,
    0xFFD720FF,
    0x8B4513FF,
    0x4949A0FF,
    0x148B8BFF,
    0x14FF7FFF,
    0x556B2FFF,
    0x0FD9FAFF,
    0x10DC29FF,
    0x534081FF,
    0x0495CDFF,
    0xEF6CE8FF,
    0xBD34DAFF,
    0x247C1BFF,
    0x0C8E5DFF,
    0x635B03FF,
    0xCB7ED3FF,
    0x65ADEBFF,
    0x5C1ACCFF,
    0xF2F853FF,
    0x11F891FF,
    0x7B39AAFF,
    0x53EB10FF,
    0x54137DFF,
    0x275222FF,
    0xF09F5BFF,
    0x3D0A4FFF,
    0x22F767FF,
    0xD63034FF,
    0x9A6980FF,
    0xDFB935FF,
    0x3793FAFF,
    0x90239DFF,
    0xE9AB2FFF,
    0xAF2FF3FF,
    0x057F94FF,
    0xB98519FF,
    0x388EEAFF,
    0x028151FF,
    0xA55043FF,
    0x0DE018FF,
    0x93AB1CFF,
    0x95BAF0FF,
    0x369976FF,
    0x18F71FFF,
    0x4B8987FF,
    0x491B9EFF,
    0x829DC7FF,
    0xBCE635FF,
    0xCEA6DFFF,
    0x20D4ADFF,
    0x2D74FDFF,
    0x3C1C0DFF,
    0x12D6D4FF,
    0x48C000FF,
    0x2A51E2FF,
    0xE3AC12FF,
    0xFC42A8FF,
    0x2FC827FF,
    0x1A30BFFF,
    0xB740C2FF,
    0x42ACF5FF,
    0x2FD9DEFF,
    0xFAFB71FF,
    0x05D1CDFF,
    0xC471BDFF,
    0x94436EFF,
    0xC1F7ECFF,
    0xCE79EEFF,
    0xBD1EF2FF,
    0x93B7E4FF,
    0x3214AAFF,
    0x184D3BFF,
    0xAE4B99FF,
    0x7E49D7FF,
    0x4C436EFF,
    0xFA24CCFF,
    0xCE76BEFF,
    0xA04E0AFF,
    0x9F945CFF,
    0xDCDE3DFF,
    0x10C9C5FF,
    0x70524DFF,
    0x0BE472FF,
    0x8A2CD7FF,
    0x6152C2FF,
    0xCF72A9FF,
    0xE59338FF,
    0xEEDC2DFF,
    0xD8C762FF,
    0x3FE65CFF,
    0xFF8C13FF,
    0xC715FFFF,
    0x20B2AAFF,
    0xDC143CFF,
    0x6495EDFF,
    0xF0E68CFF,
    0x778899FF,
    0xFF1493FF,
    0xF4A460FF,
    0xEE82EEFF,
    0xFFD720FF,
    0x8B4513FF,
    0x4949A0FF,
    0x148B8BFF,
    0x14FF7FFF,
    0x556B2FFF,
    0x0FD9FAFF,
    0x10DC29FF,
    0x534081FF,
    0x0495CDFF,
    0xEF6CE8FF,
    0xBD34DAFF,
    0x247C1BFF,
    0x0C8E5DFF,
    0x635B03FF,
    0xCB7ED3FF,
    0x65ADEBFF,
    0x5C1ACCFF,
    0xF2F853FF,
    0x11F891FF,
    0x7B39AAFF,
    0x53EB10FF,
    0x54137DFF,
    0x275222FF,
    0xF09F5BFF,
    0x3D0A4FFF,
    0x22F767FF,
    0xD63034FF,
    0x9A6980FF,
    0xDFB935FF,
    0x3793FAFF,
    0x90239DFF,
    0xE9AB2FFF,
    0xAF2FF3FF,
    0x057F94FF,
    0xB98519FF,
    0x388EEAFF,
    0x028151FF,
    0xA55043FF,
    0x0DE018FF,
    0x93AB1CFF,
    0x95BAF0FF,
    0x369976FF,
    0x18F71FFF,
    0x4B8987FF,
    0x491B9EFF,
    0x829DC7FF,
    0xBCE635FF,
    0xCEA6DFFF,
    0x20D4ADFF,
    0x2D74FDFF,
    0x3C1C0DFF,
    0x12D6D4FF,
    0x48C000FF,
    0x2A51E2FF,
    0xE3AC12FF,
    0xFC42A8FF,
    0x2FC827FF,
    0x1A30BFFF,
    0xB740C2FF,
    0x42ACF5FF,
    0x2FD9DEFF,
    0xFAFB71FF,
    0x05D1CDFF,
    0xC471BDFF,
    0x94436EFF,
    0xC1F7ECFF,
    0xCE79EEFF,
    0xBD1EF2FF,
    0x93B7E4FF,
    0x3214AAFF,
    0x184D3BFF,
    0xAE4B99FF,
    0x7E49D7FF,
    0x4C436EFF,
    0xFA24CCFF,
    0xCE76BEFF,
    0xA04E0AFF,
    0x9F945CFF,
    0xDCDE3DFF,
    0x10C9C5FF,
    0x70524DFF,
    0x0BE472FF,
    0x8A2CD7FF,
    0x6152C2FF,
    0xCF72A9FF,
    0xE59338FF,
    0xEEDC2DFF,
    0xD8C762FF,
    0x3FE65CFF,
    0xFF8C13FF,
    0xC715FFFF,
    0x20B2AAFF,
    0xDC143CFF,
    0x6495EDFF,
    0xF0E68CFF,
    0x778899FF,
    0xFF1493FF,
    0xF4A460FF,
    0xEE82EEFF,
    0xFFD720FF,
    0x8B4513FF,
    0x4949A0FF,
    0x148B8BFF,
    0x14FF7FFF,
    0x556B2FFF,
    0x0FD9FAFF,
    0x10DC29FF,
    0x534081FF,
    0x0495CDFF,
    0xEF6CE8FF,
    0xBD34DAFF,
    0x247C1BFF,
    0x0C8E5DFF,
    0x635B03FF,
    0xCB7ED3FF,
    0x65ADEBFF,
    0x5C1ACCFF,
    0xF2F853FF,
    0x11F891FF,
    0x7B39AAFF,
    0x53EB10FF,
    0x54137DFF,
    0x275222FF,
    0xF09F5BFF,
    0x3D0A4FFF,
    0x22F767FF,
    0xD63034FF,
    0x9A6980FF,
    0xDFB935FF,
    0x3793FAFF,
    0x90239DFF,
    0xE9AB2FFF,
    0xAF2FF3FF,
    0x057F94FF,
    0xB98519FF,
    0x388EEAFF,
    0x028151FF,
    0xA55043FF,
    0x0DE018FF,
    0x93AB1CFF,
    0x95BAF0FF,
    0x369976FF,
    0x18F71FFF,
    0x4B8987FF,
    0x491B9EFF,
    0x829DC7FF,
    0xBCE635FF,
    0xCEA6DFFF,
    0x20D4ADFF,
    0x2D74FDFF,
    0x3C1C0DFF,
    0x12D6D4FF,
    0x48C000FF,
    0x2A51E2FF,
    0xE3AC12FF,
    0xFC42A8FF,
    0x2FC827FF,
    0x1A30BFFF,
    0xB740C2FF,
    0x42ACF5FF,
    0x2FD9DEFF,
    0xFAFB71FF,
    0x05D1CDFF,
    0xC471BDFF,
    0x94436EFF,
    0xC1F7ECFF,
    0xCE79EEFF,
    0xBD1EF2FF,
    0x93B7E4FF,
    0x3214AAFF,
    0x184D3BFF,
    0xAE4B99FF,
    0x7E49D7FF,
    0x4C436EFF,
    0xFA24CCFF,
    0xCE76BEFF,
    0xA04E0AFF,
    0x9F945CFF,
    0xDCDE3DFF,
    0x10C9C5FF,
    0x70524DFF,
    0x0BE472FF,
    0x8A2CD7FF,
    0x6152C2FF,
    0xCF72A9FF,
    0xE59338FF,
    0xEEDC2DFF,
    0xD8C762FF,
    0x3FE65CFF
};

// Get the colors
stock GetPlayerSampColor(playerid)
{
    if(playerid >= 0 && playerid < 1000) return PlayerColors[playerid];
    return -1;
}

// Get the hex value as string
stock GetPlayerSampColorAsText(playerid, bool:upper = false)
{
    new line[9];
    format(line, sizeof(line), "%c%x", 123, GetPlayerSampColor(playerid));
    line[7] = '}';
    if(!upper) for(new i = 1; i < 7; i++)
        if(line[i] >= 65 && line[i] <= 90)
            line[i] += 32;
    return line;
}
Reply
#3

Well, I was trying to do like you did, but compiler constantly throws a warning for me:
compaction buffer overflow

[uL]Pottus, Your implementation of GetPlayerSampColorAsText is incorrect:
pawn Code:
printf("%s", GetPlayerSampColorAsText(16)); //output: {fd9faf} instead of {0fd9fa}
EDIT:

Damn, it really is only 100. I need to rewrite it completely. I will store it in an array now.

EDIT 2:

Updated - 100 colors repeated 10 times stored in an array.
Reply
#4

Good Job
Reply
#5

That looks a lot better, good job on the update bartek.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)