![]() |
| Home Community Mys-Script Creative Off-Topic |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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));
|
|
|
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 |
What's New? |
What's Hot? |
What's Popular? |