Quote:
Originally Posted by Stepashka
Сложностей то сколько.
pawn Code:
define TO_BIG_LINE = (80)
public OnPlayerText(playerid, text[]) { if (strlen(text) >= TO_BIG_LINE) { new string[128], n = strfind(text, " ", true, TO_BIG_LINE); strmid(string, text, 0, n); strdel(text, 0, n); SendPlayerMessageToAll(playerid, string); } SendPlayerMessageToAll(playerid, text); return 0; }
|
Принудительной отрезки нет. Заменю пробел символом "_" и всё в одной строке получится. причём получится может и так
strmid(string, text, 0, -1);