[UNSOLVED] Text with '~'
#1

Hi peeps (:

Im using Sandra's second chatbox and it uses textdraws...
As you might know textdraws crash when you use the '~' in your text like "~n"...
Now I need a script that prevents people to type the '~' thing...

Thanks
Reply
#2

pawn Код:
if(strfind(YourString,"~") != -1)
{
   //The string has '~' in it
}
Maybe that.
Reply
#3

Quote:
Originally Posted by TheFluxThing
Hi peeps (:

Im using Sandra's second chatbox and it uses textdraws...
As you might know textdraws crash when you use the '~' in your text like "~n"...
Now I need a script that prevents people to type the '~' thing...

Thanks
yo
http://snoob-community.wikispaces.com/ChkColorTag
that might help.
Reply
#4

Quote:
Originally Posted by Seif_
If you're using 0.3, it doesn't crash. You must be using 0.2X if it crashes, so use something like this in OnPlayerText or wherever you can enter the textdraw text:
pawn Код:
for(new s; s < strlen(text); s++) if (s == '~') s = '-';
Those don't crash for 0.3, but for me, an imbalance in ~ seemed to mess up the textdraws.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)