I get an error When I use this Script:
<aliases>
<alias
enabled="y"
match="eat (.+)"
regexp="y"
script="test"
sequence="100"
>
</alias>
</aliases>
<script>
<![CDATA[
function test($name, $line, $wildcards)
{
$world->Note($wildcards[0]);
}
]]>
</script>
error description:
Uncaught exception 'com_exception' with message 'index out of bounds' in fragment:3
Stack trace:
#0 fragment(3): variant->test()
#1 [internal function]: test(Object(variant), Object(variant), Object(variant))
#2 {main}
thrown
And I find the type of $name, $line, $wildcards all is object
BUG?
<aliases>
<alias
enabled="y"
match="eat (.+)"
regexp="y"
script="test"
sequence="100"
>
</alias>
</aliases>
<script>
<![CDATA[
function test($name, $line, $wildcards)
{
$world->Note($wildcards[0]);
}
]]>
</script>
error description:
Uncaught exception 'com_exception' with message 'index out of bounds' in fragment:3
Stack trace:
#0 fragment(3): variant->test()
#1 [internal function]: test(Object(variant), Object(variant), Object(variant))
#2 {main}
thrown
And I find the type of $name, $line, $wildcards all is object
BUG?