View Single Post
  #6  
Old 10-30-2012, 07:45 AM
Hedgen's Avatar
Hedgen Hedgen is offline
Member
 
Join Date: Oct 2012
Posts: 36
Gender: Male
Credits: 4,867
Hedgen is on a distinguished road
Default

Quote:
Originally Posted by draugluin View Post
its a very interesting question. I've tried a item, which makes an adoptable male, but

PHP Code:
function items_male($item$adopt){
  
// Update the gender info.
  
$GLOBALS['adopts']->update("owned_adoptables", array("gender" => 'm'), "aid ='{$adopt->aid}' and owner='{$item->owner}'");    
  
$note "Its male now<br>";
  
//Update item quantity...
  
$delitem $item->removeitem(1$item->owner);  
  return 
$note;

does'nt work. I've copied it from "breed1" which changes the "lastbred to 0" modified to "gender = m"

where is the fault???
I'll look into it a little when I get to school, have to leave in 20 minutes and need to get Math done I was suppose to last night ^^'

Unless of course you figure it out first :)

Edit: I have been messing with the code a bit and I can't seem to get it to work :( Sorry
__________________
I have some small tutorials Here that show things such as re-arranging the SIDEFEED and LINKSBAR, and redirecting people after login.

Last edited by Hedgen; 10-30-2012 at 10:42 AM.
Reply With Quote