/me integrated on line chat
#4

I've done this:
Код:
if(strfind(text, "*-", true) != -1)
			    {
					format(stringx, sizeof(stringx), "%s", str_replace("*-", "{C2A2DA}*-", text));
					if(strfind(stringx, "-*", true) != -1)
					{
					    format(stringy, sizeof(stringy), "%s", str_replace("-*", "-*{C8C8C8}", stringx));
					}
					else
					{
					    format(stringy, sizeof(stringy), "%s", stringx);
					}
			    }
				else
				{
				    format(stringy, sizeof(stringy), "%s", text);
				}
				format(string, sizeof(string), "Sconosciuto dice: %s", stringy);
And it works like this:
Hi *-Smiling-*
But when I try to use more *- -* the 2nd, 3rd etc.. doesn't change color like this:
Hi *-Smiling-* How are you? *-Smiling again-*
Can anyone help ?
Reply


Messages In This Thread
/me integrated on line chat - by Sk1lleD - 07.07.2013, 11:00
Re: /me integrated on line chat - by Konstantinos - 07.07.2013, 11:07
Re: /me integrated on line chat - by Sk1lleD - 07.07.2013, 11:13
Re: /me integrated on line chat - by Sk1lleD - 07.07.2013, 18:06
Re: /me integrated on line chat - by Sk1lleD - 09.07.2013, 17:28

Forum Jump:


Users browsing this thread: 1 Guest(s)