[Include] L_ColorEmbed - Color embed strings and highlight words to be used for client-messages, dialogs and gametexts/textdraw
#7

Thanks!

Quote:
Originally Posted by Abagail
View Post
Seems nice, but maybe a suggestion is to make it go to the next line if the length surpasses 144.
All functions of this include returns the data directly, so it can be done by the one who uses it. I wouldn't mind giving an example though :
pawn Code:
strcpy(temp_String, ColorEmbed_SCM(string), sizeof(temp_String));
new
    t_Str[50];

if(strmid(t_Str, temp_String, 140, strlen(temp_String)) > 0) //140 is the start point of extraction, end point is up to the end of string.
    //Some characters have been extracted from the source and passed to "t_Str"
else
    //No characters were extracted from source and passed to "t_Str".
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)