Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-22-2006, 10:52 AM
JustBreathe JustBreathe is offline
Registered User
Join Date: Jun 2006
Posts: 59
JustBreathe is on a distinguished road
Params Problem

PHP Code:
NPC1:

function 
onCreated()
  {
  
foo"bar" ); // returns false;
  
}

public function 
foo()
  {
  
NPC2.bar"foo" );
  return 
params;
  } 
PHP Code:
NPC2:
function 
onCreated()
  {
  
NPC1.foo"bar" ); // returns "foo,";
  
}

public function 
bar()
  {
  return 
params;
  } 
Inconsistency 1:
When called from within the function, params variable is NOT set. When called outside, it IS set.

Inconsitency 2:
When calling an external function, params variable are overwritten. ( Should be kept the same within the process )


Temp Fix 1: Use function foo( param1, param2 ), but limits the amount of params you COULD potentially have!

Temp Fix 2: temp.oparam = params; foo(); params = temp.oparam;
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 02:43 AM.


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