In a class named "vtest", I have:
PHP Code:
public function testt(a)
{
return a;
}
And in a weapon, I have:
PHP Code:
function onplayerchats()
{
player.join("vtest");
sendtorc("I: " @ test({4,23,32,32})); // LINE B
sendtorc("P: " @ player.testt({4,23,32,32})); // LINE A
}
function test(a)
{
return a;
}
Now... When I run this:
if LINE A is commented, the server doesn't crash... If LINE A isn't commented, the server crashes.
EDIT
The NPC Server doesn't crash on:
4
4.12
"4.12"
"T4.12"
but crashes on:
{"T4.12"}
{4}
EDIT 2
The error only occurs if you have different objects processing the variable.. If it is this.join("vtest");, it works fine.