new selColor[256] = { // The existing colours from San Andreas 000000, F5F5F5, 2A77A1, 840410, 263739, 86446E, D78E10, 4C75B7, BDBEC6, 5E7072, 46597A, 656A79, 5D7E8D, 58595A, D6DAD6, 9CA1A3, 335F3F, 730E1A, 7B0A2A, 9F9D94, 3B4E78, 732E3E, 691E3B, 96918C, 515459, 3F3E45, A5A9A7, 635C5A, 3D4A68, 979592, 421F21, 5F272B, 8494AB, 767B7C, 646464, 5A5752, 252527, 2D3A35, 93A396, 6D7A88, 221918, 6F675F, 7C1C2A, 5F0A15, 193826, 5D1B20, 9D9872, 7A7560, 989586, ADB0B0, 848988, 304F45, 4D6268, 162248, 272F4B, 7D6256, 9EA4AB, 9C8D71, 6D1822, 4E6881, 9C9C98, 917347, 661C26, 949D9F, A4A7A5, 8E8C46, 341A1E, 6A7A8C, AAAD8E, AB988F, 851F2E, 6F8297, 585853, 0AA790, 601A23, 20202C, A4A096, AA9D84, 78222B, 0E316D, 722A3F, 7B715E, 741D28, 1E2E32, 4D322F, 7C1B44, 2E5B20, 395A83, 6D2837, A7A28F, AFB1B1, 364155, 6D6C6E, 0F6A89, 204B6B, 2B3E57, 9B9F9D, 6C8495, 4D8495, AE9B7F, 406C8F, 1F253B, AB9276, 134573, 96816C, 64686A, 105082, A19983, 385694, 525661, 7F6956, 8C929A, 596E87, 473532, 44624F, 730A27, 223457, 640D1B, A3ADC6, 695853, 9B8B80, 620B1C, 5B5D5E, 624428, 731827, 1B376D, EC6AAE, 000000, // SA-MP extended colours (0.3x) 177517, 210606, 125478, 452A0D, 571E1E, 010701, 25225A, 2C89AA, 8A4DBD, 35963A, B7B7B7, 464C8D, 84888C, 817867, 817A26, 6A506F, 583E6F, 8CB972, 824F78, 6D276A, 1E1D13, 1E1306, 1F2518, 2C4531, 1E4C99, 2E5F43, 1E9948, 1E9999, 999976, 7C8499, 992E1E, 2C1E08, 142407, 993E4D, 1E4C99, 198181, 1A292A, 16616F, 1B6687, 6C3F99, 481A0E, 7A7399, 746D99, 53387E, 222407, 3E190C, 46210E, 991E1E, 8D4C8D, 805B80, 7B3E7E, 3C1737, 733517, 781818, 83341A, 8E2F1C, 7E3E53, 7C6D7C, 020C02, 072407, 163012, 16301B, 642B4F, 368452, 999590, 818D96, 99991E, 7F994C, 839292, 788222, 2B3C99, 3A3A0B, 8A794E, 0E1F49, 15371C, 15273A, 375775, 060820, 071326, 20394B, 2C5089, 15426C, 103250, 241663, 692015, 8C8D94, 516013, 090F02, 8C573A, 52888E, 995C52, 99581E, 993A63, 998F4E, 99311E, 0D1842, 521E1E, 42420D, 4C991E, 082A1D, 96821D, 197F19, 3B141F, 745217, 893F8D, 7E1A6C, 0B370B, 27450D, 071F24, 784573, 8A653A, 732617, 319490, 56941D, 59163D, 1B8A2F, 38160B, 041804, 355D8E, 2E3F5B, 561A28, 4E0E27, 706C67, 3B3E42, 2E2D33, 7B7E7D, 4A4442, 28344E };
format(string, sizeof(string), "{%s}This is what the color is.", selColor[226]);
../withal/w_vars.inc(29) : error 017: undefined symbol "F5F5F5" ../withal/w_vars.inc(43) : error 010: invalid function or declaration ../withal/w_vars.inc(56) : error 010: invalid function or declaration
// The existing colours from San Andreas
"000000", "F5F5F5", "2A77A1", "840410", "263739", "86446E", "D78E10", "4C75B7", "BDBEC6", "5E7072",
"46597A", "656A79", "5D7E8D", "58595A", "D6DAD6", "9CA1A3", "335F3F", "730E1A", "7B0A2A", "9F9D94",
format(string, sizeof(string), "{%06x}This is what the color is.", selColor[index_here] >>> 8);
SendClientMessage(playerid, selColor[index_here], "This is what the color is.");
Hello!
You must do it like this: PHP код:
|