Support Forums
Java help - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Java Programming (https://www.supportforums.net/forumdisplay.php?fid=22)
+---- Thread: Java help (/showthread.php?tid=5591)



Java help - php - 04-05-2010

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!");
}



RE: Java help - php - 04-06-2010

Nevermind, forgot the two brackets on "otherItem == 143", and added too many brackets on 139.