Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-17-2006, 07:19 AM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
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.
Reply With Quote
  #2  
Old 10-17-2006, 11:47 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Hmmm it's the same for any command that accepts an unlimited number of parameter (scheduleevent etc.) I think
Reply With Quote
Reply


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 07:25 PM.


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