View Single Post
  #1  
Old 04-16-2015, 01:58 PM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 28,407
kristhasirah
Default limit adopted eggs

need help converting this code from ver. 1.3.2 to 1.3.4
already tried to change the code but cant make it work.

PHP Code:
else
{
$stmt $mysidia->db->select("owned_adoptables", array(), constant("PREFIX")."owned_adoptables.owner = '{$mysidia->user->username}'");
$count 0;
while(
$adopt $stmt->fetchObject())
{
if(
$adopt->currentlevel <= 6) { $count++;}
}
if(
$count >= 5)
{
$mysidia->page->settitle("Too many eggs");
$mysidia->page->addcontent("You've got too many eggs and should wait until you've hatched one.");

__________________
Reply With Quote