Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Java help
#1
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!");
}
Reply
#2
Nevermind, forgot the two brackets on "otherItem == 143", and added too many brackets on 139.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  why java haphazard 8 1,751 12-12-2011, 03:23 AM
Last Post: RDCA
  Need Java help from java expert. Blazin 2 2,091 09-07-2011, 02:43 PM
Last Post: AceInfinity
  Java Problem for real java programmer Testgamma1 10 5,135 03-14-2010, 09:08 AM
Last Post: uber1337
  How do i get java Mozz 4 1,571 02-13-2010, 12:29 PM
Last Post: Mozz
  Java Help Gone 3 1,061 01-21-2010, 02:07 PM
Last Post: Gone

Forum Jump:


Users browsing this thread: 1 Guest(s)