View Single Post
  #5  
Old 07-14-2009, 04:08 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by [email protected] View Post
ok, the question appears on the block ok, but whats wrong with this?

if (player.chat == "MyGUI_TextEdit2")
{
player.chat = "I got the answer right!";
}
No, the question won't appear on the block correctly. Like I said, it's clientside (read that article), and will only show for you and no one else.

To get the text of an object, you need to pull it from the 'text' variable of the control.
__________________
Reply With Quote