Text Splitting with Continuous Embedded Color
#3

Quote:
Originally Posted by DeathOnaStick
View Post
When talking about splitting text there is just strtok or sscanf in my mind. Why don't you use one of these? Or did I get something wrong?
Thanks for the reply, you're getting it wrong indeed. Here's an example of how I use that function:

pawn Code:
#define SendClientMessageEx(%0,%1,%2) \
           SendClientMessage(%0, %1, splitString(%2, 1); \
           if(strlen(%2) > 123) SendClientMessage(%0, %1, splitString(%2, 2)
This is the above macro in output:

Quote:

Cyanide: Hello, my name is Cyanide, I am from Ontario Canada. I am a San Andreas Multiplayer player. I have been playing ...
... Grand Theft Auto for several years now.

As you can see, it will automatically continue the message.
Reply


Messages In This Thread
Text Splitting with Continuous Embedded Color - by Cyanide - 10.06.2011, 19:57
Re: Text Splitting with Continuous Embedded Color - by DeathOnaStick - 10.06.2011, 21:11
Re: Text Splitting with Continuous Embedded Color - by Cyanide - 10.06.2011, 21:17
Re: Text Splitting with Continuous Embedded Color - by Cyanide - 11.06.2011, 15:53
Re: Text Splitting with Continuous Embedded Color - by HP - 11.06.2011, 17:07

Forum Jump:


Users browsing this thread: 1 Guest(s)