30.12.2014, 05:05
Thanks!
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 :
Quote:
Seems nice, but maybe a suggestion is to make it go to the next line if the length surpasses 144.
|
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".