Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old 05-31-2005, 12:54 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Returning an object (arrays or so) from another script was bugged, should be fixed now (restart the npcserver).
Reply With Quote
  #3  
Old 05-31-2005, 02:52 AM
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
Another 'error' related:

When returning a variable, if it's temp., it'll return "".
__________________
In a world of change... Who'll you believe?

Last edited by Velox Cruentus; 05-31-2005 at 03:12 AM..
Reply With Quote
  #4  
Old 05-31-2005, 01:00 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Tried with the latest npcserver version ?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:47 PM.


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