Thread: Return Objects
View Single Post
  #1  
Old 09-23-2005, 02:07 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
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.
__________________
In a world of change... Who'll you believe?
Reply With Quote