So I made items tools in my game, and now I want to make sure a player has the required tool to do an activity in my game. WELL, I cannot and I am almost certain it is easy, but just out of my brain for the last hour.
I made three tool variables in the users DB like the armor and weapons ones. I see that my tool has been equipped and that the number of the tool is also correct. This is my code
if($ir['equip_tool1'] || $ir['equip_tool2'] || $ir['equip_tool3'] != '79')
{
print "Error, you do not have a Fishing Pole. Or it is not equipped.<br />
<a href='exmakemoney.php'>> Back...</a> Or <a href=remakeitem.php>Go Make One</a>!";
$h->endpage();
exit;
}
I am fairly certain this is saying ALL 3 slots do not have a tool number 79. When I want it to ask if one of the slots has the tool, if it does, than go on without the error.
Any help would be appreciated alot!!!! This has been bugging me.