View Single Post
  #10  
Old 05-05-2011, 04:46 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,866
fadillzzz is an unknown quantity at this point
Default

Mapleblade, instead of comparing the variable to a number why not just compare it to each other?
PHP Code:
if($slot1 == && $slot2 == && $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.
Reply With Quote