Mapleblade, instead of comparing the variable to a number why not just compare it to each other?
PHP Code:
if($slot1 == 1 && $slot2 == 1 && $slot3 == 1){
$reward = 20;
}
should be
PHP Code:
if($slot1 === $slot2 && $slot2 === $slot3){
$reward = 20;
}
That way, you don't need to create another if statement to compare the variable to another number like 2 or 3.