ID:273076
 
Um how do I put in a language filter?Findtext?That doesn't really work for me.For some reason the player can still speak IT.And when I tried to configure it,it outputs double text.What's Ascii?As for text limit,copytext isn't doing the trick for me.Say I put a limit of 5 but I can ouput 10 or more for some reason.In addition to the text size limit,I have a rename verb and people may put things such as "(note the leet speak,it's because I'm trying to show you what I'm saying in the most not confusing way.)"and make their size all the way to omega 12.I wish for them to stop at a specific text size.Help please?
First: Work on your spaces and punctuation.

Second: findtext is not case sensitive, findText is case sensitive. Keep that in mind.

Third: For finding the length of text, look up length()

Fourth: For limiting length of text, look up copytext()

Example of four: copytext(Name,1,MaxLength)
id:714811 Tekken's TextHandling Library, uses
replacetext(non-case sensitive)

replaceText(case sensitive)

As for the font size Issue, I cannot help you there. the best solution would be just to disable it using html_encode()
In response to AJX
AJX wrote:
First: Work on your spaces and punctuation.

Second: findtext is not case sensitive, findText is case sensitive. Keep that in mind.

Third: For finding the length of text, look up length()

Fourth: For limiting length of text, look up copytext()

Example of four: copytext(Name,1,MaxLength)

First,if the world is ending tomorrow,who cares about spaces and punctuation?

Second,A-Okay!

Third,more A-Okay!

Fourth,I know how copytext works,but it just isn't doing its job.

Fifth,what about limiting font sizes in names?
In response to Leur
Keep in mind that I know nothing of C++.
In response to Gr1m d4 r34p3r
Gr1m d4 r34p3r wrote:
Keep in mind that I know nothing of C++.

html_encode() is a byond function. Look it up in the reference. It will stop players from bolding, italicizing, or modifying any properties of their name. A very good idea.
In response to Gr1m d4 r34p3r
Gr1m d4 r34p3r wrote:
First,if the world is ending tomorrow,who cares about spaces and punctuation?

If you want people to be able to understand what the hell you are saying, and thusly be able to help you, start caring. I don't mind if people are still learning / working on their english, but when people make the decision to not improve on their english or not care, I make the decision to not offer them assistance.
In response to Gr1m d4 r34p3r
Gr1m d4 r34p3r wrote:
Fourth,I know how copytext works,but it just isn't doing its job.

Sorry, but computers do not suddenly decide to go on strike and stop doing their job. If you give proper input, you receive proper output, unless there is a bug (which I kind of doubt), in which case you should report the bug.

As for your problem at hand, make sure that you fully understand the interface (the arguments and usage) of cKey, copytext, findText, findtext and text2ascii, as for a start.
Additionally, you might want to have a look at Lummox JR's article on a related topic.