View Single Post
  #4  
Old 05-13-2010, 10:39 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
Quote:
Originally Posted by adam View Post
PHP Code:
function onCreated() {
  
clearemptyvars(); // doesn't crash when used here
  
  
this.test.var = "testing";
  echo( 
this.test.getDynamicVarNames() );
  
  
this.test.var = "";
  echo( 
this.test.getDynamicVarNames() );
  
  
//clearemptyvars();    // crash's when i swap it to here
  
echo( this.test.getDynamicVarNames() );
  

I'm not exactly sure what's going on here. It seems to crash when used alongside echo() Which is silly.
I can confirm that this crashes the NPC Server, however, it has nothing to do with the echo(). Try setting temp.somevar = this.test.getDynamicVarNames() instead of echoing it, and the server will still crash.
__________________
Reply With Quote