Add < text > in chat
#3

Use this Strreplace function - https://sampforum.blast.hk/showthread.php?tid=396978

to replace opening angular bracket with "\"NEW_COLOR_NAME\"<" and closing bracket with ">\"OLD_COLOR_NAME\"".

for example,
Код:
new str[20] = "Hi <smiles> Sir."
strreplace(str, "<", "{FF0000}<");
strreplace(str, ">", ">{FFFF00}");

SendClientMessage(playerid, 0xFFFF00FF, str); //This Will output,
Hi <smiles> Sir.
Reply


Messages In This Thread
Add < text > in chat - by Auri - 03.06.2018, 07:03
Re: Add < text > in chat - by Livity - 03.06.2018, 07:22
Re: Add < text > in chat - by GTLS - 03.06.2018, 07:40
Re: Add < text > in chat - by Auri - 03.06.2018, 07:41
Re: Add < text > in chat - by GTLS - 03.06.2018, 07:43
Re: Add < text > in chat - by Auri - 03.06.2018, 07:58
Re: Add < text > in chat - by GTLS - 03.06.2018, 09:04
Re: Add < text > in chat - by Auri - 03.06.2018, 09:30
Re: Add < text > in chat - by GTLS - 03.06.2018, 10:02
Re: Add < text > in chat - by Auri - 03.06.2018, 10:29

Forum Jump:


Users browsing this thread: 1 Guest(s)