Thread: Return Error
View Single Post
  #1  
Old 05-28-2005, 11:36 PM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to Velox Cruentus
Return Error

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.
__________________
In a world of change... Who'll you believe?

Last edited by Velox Cruentus; 05-29-2005 at 12:48 AM..
Reply With Quote