Graal Forums

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

Velox Cruentus 09-23-2005 02:07 AM

Return Objects
 
When returning an object to another object, the value becomes null ("0").

example:
PHP Code:

CLASS "p"

function test() echo("CLASS_OUTPUT: " this.testing());
public function 
testing()
{
  
meep = {1,2,{"Multi","Array"}};
  return 
meep;
}
NPCW

function onplayerchats()
{
  
player.join("p");
  
player.test();
  echo(
"WEAPON_OUTPUT: " player.testing());


Results:
PHP Code:

CLASS_OUTPUT1,2,"Multi,Array"
WEAPON_OUTPUT

e.g.: NPC: Velox_Test, #gscript

Displays output on RC.


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

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