View Single Post
  #1  
Old 04-28-2007, 02:34 AM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
Classes with guis

Ok, so, I am trying to make a sale system. Its just a basic gui that displays the item name, image, and a buy or cancel button.
The only thing is, I cant get it to display data. ><

My npc in the level:
HTML Code:
this.join("shops");
//#CLIENTSIDE
this.shopname = "John's Shop";
this.itemname = "Tommy Gun";
The class:
HTML Code:
//#CLIENTSIDE
function onCreated(){

}
function onActionLeftMouse(){
new GuiWindowCtrl("shopwin") {
  profile = GuiBlueWindowProfile;
  x = 10;
  y = 10;
  destroyonhide=true;
  width = 160;
  height = 80;
  text = ""
  
new GuiMLTextCtrl("shopitem") {
  profile = GuiBlueMLTextProfile;
  x = 10;
  y = 20;
  width = 160;
  height = 1;
  text = @this.itemname;
}
  
}
}
Now, when you click the item, a blank gui pops up, and it doesnt display the item name. =/
Reply With Quote