Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Return Error (https://forums.graalonline.com/forums/showthread.php?t=59160)

Velox Cruentus 05-28-2005 11:36 PM

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.

Admins 05-31-2005 12:54 AM

Returning an object (arrays or so) from another script was bugged, should be fixed now (restart the npcserver).

Velox Cruentus 05-31-2005 02:52 AM

Another 'error' related:

When returning a variable, if it's temp., it'll return "".

Admins 05-31-2005 01:00 PM

Tried with the latest npcserver version ?


All times are GMT +2. The time now is 04:10 AM.

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