Uhmm try this?
I'm still a little confused.... But this should work...
PHP Code:
$metal = explode(".", $infos2["metal"]);
// Crystal
$crystal = explode(".", $infos2["crystal"]);
// Deuterium
$deuterium = explode(".", $infos2["deuterium"]);
//Changed AND into OR.
//On a side note, proper use of and is &&, || is or
//You don't want to see if they have 5000 of all resources for one point, just 5000 of one type.
//If you want to see if they have all change the || to &&. Your choice.
if($metal[0] >= 5000 || $crystal[0] >= 5000 || $deuterium[0] >= 5000){
echo "Enough";
} else {
echo "Not enough";
}