30.03.2013, 21:30
"OnPlayerText" I want to spend part of the text is too long how can I do when it comes to the bottom line?
forward SendClientMessages(playerid,color,text[]);
public SendClientMessages(playerid,color,text[])
{
if(strlen(text) <= 68) SendClientMessage(playerid,color,text);
else {
new texts[61];
strmid(texts,text,68,129);
strins(text, "-", 68, 1);
strdel(text, 69, 129);
SendClientMessage(playerid,color,text);
SendClientMessage(playerid,color,texts);
}
}