nope. Just make a if statement if that it = 0 don't add the item. Simple
|
Well I'm using a
and when I drop that item, it's 0, so it's dwarf remains.Code:public int halppl0x = 0;
Then I tried -1, and that just DC'ed me. So is there an id that is nothing? Like nothing at all.
nope. Just make a if statement if that it = 0 don't add the item. Simple
your welcome. If you cant get it to work right just give me the code and I will try and fix it for you. using if statements for items and stuff is very affective because it helps to limit things with out needing to code a big huge code.
Nevermind, I can't do that. Because I'm using a random:
Code:public static int randomzoutofchest() { return randomoutofchest[(int)(Math.random()*randomoutofchest.length)]; }
Because I'm using a random, as you may know. One might equal 0 and one might equal if (xxx > 0), so I don't know how x(
hmm ok well post the whole code here. where it will add that item
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |