daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest May 16th, 2018 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. Made by NamoBage
  3. */
  4.  
  5. #include <a_samp>
  6.  
  7. ConvertTextColor(szString[],maxlength=sizeof(szString))
  8. {
  9.     #define MAX_COLOR 10
  10.     #define DELIMITER_CHAR '^'
  11.  
  12.     #if ( MAX_COLOR > 10 )
  13.         #error MAX_COLOR ERROR
  14.     #endif
  15.     #if !(defined DELIMITER_CHAR)
  16.         #error DELIMITER ERROR
  17.     #endif
  18.  
  19.     new aColor[MAX_COLOR][7]=
  20.     {
  21.         "FFFFFF", // White
  22.             "E74700", // Red
  23.         "BBFF00", // Green
  24.         "3880CD", // Blue
  25.         "FFFF00", // Yellow
  26.         "FF4D7B", // Light Red
  27.         "B15DFE", // Purple
  28.         "FFA2FE", // Pink
  29.         "F18348", // Orange
  30.         "03FFE1" // Cyan
  31.     };
  32.     for(new i=0,l=strlen(szString); i<l; i  )
  33.     {
  34.         if(i 6>=maxlength || l 6>=maxlength) break;
  35.         if(szString[i]==DELIMITER_CHAR
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top