View Single Post
  #1  
Old 01-31-2009, 12:45 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Assigning functions to GUI objects

It would be nice if you could do things like this, without generating a "function not found" error.

PHP Code:
//#CLIENTSIDE
function onCreated()
{
  new 
GuiWindowCtrl("Debug") {
    
this.testFunc = function () {
      echo(
"Sup?");
    };
    
    
this.testFunc();
  }

NPC Code:
GraalScript: Function Debug.testFunc not found in script of Weapon Public/xXziroXx/Debug

__________________
Follow my work on social media post-Graal:Updated august 2025.

Last edited by xXziroXx; 01-31-2009 at 04:24 PM.. Reason: <3 Darlene for uncensoring stfu, testFunc is now possible! :D
Reply With Quote