PHP Code:
function onactiongot( v )
{
echo( v ); // returns 1;
echo( params ); // returns {1,2}
}
//#CLIENTSIDE
function onCreated()
{
v = {1,2};
echo( v ); // returns {1,2}
triggeraction( this.x, this.y, "got", temp.v );
}
PHP Code:
function onactiongot( v )
{
echo( v ); // returns {1,2};
echo( params ); // returns {{1,2},""};
}
//#CLIENTSIDE
function onCreated()
{
v = {1,2};
echo( v ); // returns {1,2}
triggeraction( this.x, this.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.