Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-01-2008, 11:30 AM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
Need help with weird Bug...

Hi,

so after some Bugs that I could pass by with VarHandles(e.g. not being able to set temp. vars, or maybe this. vars too ), and some others I reached something unfixable for me, atleast I tried many things

If i comments out the for with /* */ it works, If i don't comments it out the Array will be Echoes as "0", for some reason even before the for...

PHP Code:
function onCreated()
  {
  
TestC null;
  
TestC = new TStaticVar();
  
TestC.mainHandle this;
  
TestC.testArr = { { 1}, { 2}, { 3} };
  
TestC.testingFunc1 = function()
    {
    
TestP.testingFunc2TestC.testArr );
    };
  
TestP null;
  
TestP = new TStaticVar();
  
TestP.testingFunc2 = function( testArr )
    {
    
TestC.mainHandle.trigger"EchoR""arrive:" testArr );
    
VarHandle null;
    for( 
VarHandle.ty 0VarHandle.ty 5VarHandle.ty++ )
      {
      
TestC.mainHandle.trigger"EchoR""pre " VarHandle.ty " : " testArr );
      
//VarHandle.ttempp = testArr[ VarHandle.ty ]; Doesnt even work without this...
      
TestC.mainHandle.trigger"EchoR""post " VarHandle.ty " : " testArr );
      }  
    
TestC.mainHandle.trigger"EchoR", { testArr } );
    };
  
TestC.testingFunc1();
  }

function 
onEchoR()
  {
  echo( 
params] );
  } 
__________________
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:07 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.