View Single Post
  #6  
Old 12-11-2018, 02:18 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 63,782
Dinocanid is on a distinguished road
Default

It should be:
PHP Code:
$mysidia->db->update_decrease("owned_adoptables", array("mood"), 2"isfrozen = no"); 
Or if you're subtracting multiple things, but only if the pet isn't frozen, you can do this:
PHP Code:
if($adopt->isFrozen){
$mysidia->db->update_decrease("owned_adoptables", array("mood"), 2)
//other stuff you might want to subtract can go here...
}; 
__________________
Reply With Quote