Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-09-2013, 05:11 PM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 31,992
Infernette is on a distinguished road
Default Problem with Adding Dimorphism?

Okay, I got it to work with alternates only showing with a specified gender, but for some reason it's making the type "NULL" in the mysql database, causing the adopt not to show up in the person's myadopts. So yeah... this is the edited part:

Code:
$petgender = $genders[$rand];
                 switch($petgender){
                          case "m": 
                          $alts = "yes";
                          break;
                          default: 
                          $alts = "no";
                        }                        

         $mysidia->user->changecash(-$row->cost);
		 $mysidia->page->settitle("{$name} adopted successfully");
		 $mysidia->db->insert("owned_adoptables", array("aid" => NULL, "type" => $row->type, "name" => $name, "owner" => $mysidia->user->username, "currentlevel" => 0, "totalclicks" => 0, "code" => $code, 
			                                            "imageurl" => NULL, "usealternates" => $alts, "tradestatus" => 'fortrade', "isfrozen" => 'no', "gender" => $genders[$rand], "lastbred" => 0));
What am I doing wrong? I knew it was too good to be true to work the first time around :p
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a Theme PokeFerno Questions and Supports 3 05-13-2014 03:47 PM
Adding Databases Kesstryl Questions and Supports 4 06-08-2012 06:47 AM
Adding new adoptables? Slix Questions and Supports 0 07-05-2011 11:12 AM
adding images Nemesis Questions and Supports 11 04-10-2011 11:00 AM
Adding adoptable >.< blondbananamix Questions and Supports 12 03-20-2011 05:29 PM


All times are GMT -5. The time now is 02:53 AM.

Currently Active Users: 3149 (0 members and 3149 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636