Support Forums

Full Version: Java help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can someone please tell me what's wrong with this code?

Code:
if(((itemUsed == 143) && (otherItem == 139)))
                    || ((itemUsed == 139) && (otherItem == 143)){
deleteItem(143, getItemSlot(143), 1);
deleteItem(139, getItemSlot(139), 1);
addItem(2434, 1);
addItem(229, 1);
sM("Mission complete sarge!");
}
Nevermind, forgot the two brackets on "otherItem == 143", and added too many brackets on 139.