SA-MP Forums Archive
Disable color code in textdraw string - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Disable color code in textdraw string (/showthread.php?tid=434956)



Disable color code in textdraw string - Admigo - 04.05.2013

Heey all,

I want to make a chat system with textdraws.
But when someone uses the color codes(~b~,~g~,~y~,etc) the color of the chat will be changed offcourse.
Is it possible to disable that and keep the chat white?

Admigo


Re: Disable color code in textdraw string - XStormiest - 04.05.2013

no that's from <a_samp> include


Re: Disable color code in textdraw string - 2KY - 04.05.2013

You could probably use strfind, and then strdel.

https://sampwiki.blast.hk/wiki/Strfind
https://sampwiki.blast.hk/wiki/Strdel