13.12.2017, 12:26
(
Last edited by pawnoholic; 13/12/2017 at 01:33 PM.
)
Quote:
|
Если не по словам, то как-то так:
PHP Code:
|
Спасиб, как можно сделать игнорирование цвета {xxxxxx} в длине строки?
PHP Code:
Dialog_ReProcess(desc[])
{
new
currentLinePos,
lastLinePos;
while (currentLinePos >= 0)
{
if ((currentLinePos = strfind(desc, "\n", false, lastLinePos + 1)) != -1)
{
if (currentLinePos - lastLinePos > 64)
{
for (new i = currentLinePos; i > lastLinePos; i--)
{
if (desc[i] == 32 && ((currentLinePos - i) <= 64))
{
desc[i] = '\n';
break;
}
}
}
}
lastLinePos = currentLinePos;
}
}


