Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Inconsistency in triggeraction (https://forums.graalonline.com/forums/showthread.php?t=69468)

Novo 10-17-2006 07:19 AM

Inconsistency in triggeraction
 
PHP Code:

function onactiongot)
  {
  echo( 
); // returns 1;
  
echo( params ); // returns {1,2}
  
}
//#CLIENTSIDE
function onCreated()
  {
  
= {1,2};
  echo( 
); // returns {1,2}
  
triggeractionthis.xthis.y"got"temp.);
  } 

PHP Code:

function onactiongot)
  {
  echo( 
); // returns {1,2};
  
echo( params ); // returns {{1,2},""};
  
}
//#CLIENTSIDE
function onCreated()
  {
  
= {1,2};
  echo( 
); // returns {1,2}
  
triggeractionthis.xthis.y"got"temp.v"" );
  } 

If the triggeraction only has one param, it send the triggeraction as if each element in the first array is a param. If there is more than one param, it sends it as though each element is what it really is.

By not changing the first param, the resultant is of two varieties depending on how many parameters there is.

Admins 10-17-2006 11:47 AM

Hmmm it's the same for any command that accepts an unlimited number of parameter (scheduleevent etc.) I think


All times are GMT +2. The time now is 04:38 AM.

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