Split talking text string...
#1

How would one go about splitting up talking text?
This is what I mean...
If you're typing a really long message, you have to be careful because some of it might go off the screen. However, I've been on a server before where you don't have to worry. If the message is too long, the server simply split it where it needed to be split, and created a new string/line for the rest of the message.

I've always wondered why this little addition wasn't implemented into all servers, as I do see it to be a simple, effective, and original idea.
Reply
#2

Код:
if(strlen(Text) > 128)
{
format(Text,128,"%s",Text);
SendClientMessage(playerid,color,Text);
strmid(Text,Text,128,256,256);
SendClientMessage(playerid,color,Text);
}
Untested
Reply
#3

If this works I'm going to make love to your +Rep.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)