Try this. Either one is functionally the same, but I think the second may be more concise.
Code:
if (buttons[4] && buttons[0])
{
basketsAttempted--;
}
else if (buttons[0])
{
basketsAttempted++;
}
OR
if (buttons[0]){
if (buttons[4){
basketsAttempted--;
}
else{
basketsAttempted++;
}
}
BTW, what was happening when you used the same button for both the add and subtract operation is that both were testing true, and canceling each other out. Effectively you were doing: x = x + 1 - 1;