Thread: Breeding
View Single Post
  #20  
Old 10-27-2009, 11:32 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 34,247
Arianna will become famous soon enough
Default RE: Breeding

Here :D
PHP Code:
if($gender_rand 0){
                
$new_name $male_name." & ".$female_name."'s Son";
                
$gender 'male';
                unset(
$gender_rand);
            }
            else{
                
$new_name $male_name." & ".$female_name."'s Daughter";
                
$gender 'female';
                unset(
$gender_rand);
            } 
It works on the code, producing something to the like of this at the end:
Code:
Manage Ik & Random's Daughter now! It's type is Jinx and it was born on October 27th, 2009! You can change its name to your liking.
I don't believe that that is the problem, I think that it's not inserting it into the database correctly.
Reply With Quote