View Single Post
  #17  
Old 04-07-2010, 09:26 PM
DeCeaseD DeCeaseD is offline
Registered User
Join Date: Jan 2008
Posts: 247
DeCeaseD will become famous soon enough
Quote:
Originally Posted by Switch View Post
What's the function that returns what you have?
For returning the items, I have this in the BackpackDB:

PHP Code:
public function RetrieveItems( pl, backpack )
{
  return 
this.(pl @"_backpack_"@ backpack);
} 
And for returning the stats of those items, I have this in the ItemDB:

PHP Code:
public function ReturnItemStats( item, itemCount ) 
{
  for ( 
temp.v = 0; temp.v < itemCount; temp.v++; ) {
  
    return 
this.(@ item)[temp.v];
    echo(
"Debug: "@ this.(@ item)[temp.v]);
  }
} 
Reply With Quote