Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Made by NamoBage
- */
- #include <a_samp>
- ConvertTextColor(szString[],maxlength=sizeof(szString))
- {
- #define MAX_COLOR 10
- #define DELIMITER_CHAR '^'
- #if ( MAX_COLOR > 10 )
- #error MAX_COLOR ERROR
- #endif
- #if !(defined DELIMITER_CHAR)
- #error DELIMITER ERROR
- #endif
- new aColor[MAX_COLOR][7]=
- {
- "FFFFFF", // White
- "E74700", // Red
- "BBFF00", // Green
- "3880CD", // Blue
- "FFFF00", // Yellow
- "FF4D7B", // Light Red
- "B15DFE", // Purple
- "FFA2FE", // Pink
- "F18348", // Orange
- "03FFE1" // Cyan
- };
- for(new i=0,l=strlen(szString); i<l; i )
- {
- if(i 6>=maxlength || l 6>=maxlength) break;
- if(szString[i]==DELIMITER_CHAR
Add Comment
Please, Sign In to add comment