View Single Post
  #3  
Old 04-17-2008, 07:53 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Did you read my post at all? o.O
I'm already doing this most likely, since string.escape() will put backslashes infront of several characters. But the backslashes will remain when then putting the string into a TextEdit Control.

Let's say the player says the following:
test1 "test2" test3, test4

PHP Code:
temp.string player.chat.escape().tokenize();

//stuff modifying the string

temp.newString "";
for (
temp.ctemp.string)
  
newString @= " ";

ChatBar.text newString
Will result in this:
test1 \"test2\" test3, test4

And exactly this being put into the chatbar. Just an example, hope you get what I mean.
Reply With Quote