View Single Post
  #4  
Old 04-12-2012, 02:22 PM
Devil_Lord2 Devil_Lord2 is offline
David K?
Devil_Lord2's Avatar
Join Date: Apr 2011
Location: PA, MD.
Posts: 643
Devil_Lord2 can only hope to improve
Quote:
Originally Posted by Emera View Post
You've set Dev_Client_Var to client.intro, so why are you doing Dev_Client_Var.text?
PHP Code:
//#CLIENTSIDE

function onCreated() {
  var = 
"hello";
  
player.chat = var;
  
//not player.chat = var.text

edit:
Wait, is Dev_Client_Var a GUI text ctrl?

PHP Code:
new GuiTextCtrl("Dev_Client_Var") {
  
//all this x and y crap
  
var = client.intro;
}

new 
GuiButtonCtrl("Dev_Client_OK") {
  
//all this x and y crap
}

function 
Dev_Client_OK.onAction() {
  
//Are you trying to make it trad Dev_Client_Var.var?
  
player.chat "player." Dev_Client_Var.var;

I'm trying to understand what you're trying to do here but what you just posted didn't make a lot of sense to me.
Yes, it is a GUI text ctrl, I was helped by the first part with Thyme (looking back I wouldn't have been able to do it my self) Took him about 20 minutes to figure it out. Now I'd like the input of the GUI to be able to set the variable...

You input the variable name in the left input i.e.: "client.intro"
then in the right input you would put in the number or array
i.e.: 5 or {6,4,2} or "testing"...
__________________

Digital Media Artist - David K? </3 (UnLoved)
www.davidkrout.com
www.twitch.com/DavidKkz



Reply With Quote