View Single Post
  #1  
Old 09-30-2006, 07:58 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
returning objects

PHP Code:
//#CLIENTSIDE
function onCreated()
  {
  echo(
"ll3");
  
this.counter 0;
  }
public function 
adminMsgamsg )
  {
  echo(
"ll4");
  
this.amsg amsg.tokenize("\b");
  
this.awindow _createWindowthis.amsg.size() );
  echo(
"l2: " this.awindow.text);
  
this.awindow.visible true;
  
GUIContainer.addControlthis.awindow );
  }
function 
_createWindowalines )
  {
  
this.windowname "AdminMsg_Window_" this.counter;
  
this.alines alines;
  ( @ 
this.windowname ) = new GuiWindowCtrl();
  
with( ( @ this.windowname ) )
    {
    
visible false;
    
profile "GuiBlueWindowProfile";
    
width 300;
    
height thiso.alines 16 25;
    
screenwidth width 2;
    
screenheight height 2;
    
canClose true;
    
onclosequery=true;
    
thiso.catcheventthis"onCloseQuery""onCloseWindow" );
    
canMinimize canResize canMaximize false;
    
text "Admin Message";
    
canMove true;
    }
  
this.counter++;
  echo( 
"l: " this.windowname );
  echo( 
"l1" @ ( @ this.windowname ).text );
  return ( ( @ 
this.windowname ) );
  }
function 
onCloseWindow()
  {
  
player.chat params[0].text;
  } 
it should return the window object but for some reason it doesnt o.o
output:
Quote:
ll3
ll4
l: AdminMsg_Window_0
l1Admin Message
l2:
Reply With Quote