View Single Post
  #1  
Old 05-04-2012, 09:15 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 110,431
SilverDragonTears is on a distinguished road
Default Limiting number of eggs and hatchlings

Currently I have this which says if you have more than 5 eggs you can't adopt.

Code:
$stmt = $adopts->query("SELECT * FROM ".constant("PREFIX")."owned_adoptables WHERE owner='".$loggedinname."' AND currentlevel<='3' AND isfrozen='no'");
$data = $stmt->fetchAll();
$num = count($data);

if($num >= 5){ 
$canadopt = "no"; 
$article_title = "Too many eggs!"; $article_content = "You already have too many eggs to take care of! Come back once you have hatched an egg!"; 
}
How can I change this so that you can't have more than 5 eggs AND say... 10 hatchilings at a time?
__________________

Check out SilvaTales
Reply With Quote