June 19, 201312 yr 16 is printed... why? Now how about this: class myclass { int myInt = 5; function myclass() { int myInt = 16; anotherFunc(); } function void anotherFunc() { System.out.println(myInt); } } What does that output? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
June 19, 201312 yr Author Did I get the first right? Because if I did, then 16... again. But if not, then I'm not sure I know.
June 20, 201312 yr Did I get the first right? Because if I did, then 16... again. But if not, then I'm not sure I know. Oh your first answer was right. It is not correct this time. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
June 20, 201312 yr Does it not output anything? No, it outputs. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
June 20, 201312 yr 5 then. Now look at your base class. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
June 20, 201312 yr 5 then. Now look at your base class. My grandfather would like you. You're trying to teach common sense.
June 20, 201312 yr My grandfather would like you. You're trying to teach common sense. You mean uncommon sense. Or perhaps even super-sense. But yes. What I'm doing is teaching people how to debug their own fucking code and resolve their own stupid mistakes rather than ask for help all the time. I mean yeah, I just posted my own fairly basic question, but I've been stuck trying to figure out what I'm missing for an hour now, trying all kinds of things to get the effect I want. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
June 20, 201312 yr My grandfather would like you. You're trying to teach common sense. You mean uncommon sense. Or perhaps even super-sense. Right. The thing that's kinda going lost. But yes. What I'm doing is teaching people how to debug their own fucking code and resolve their own stupid mistakes rather than ask for help all the time. I mean yeah, I just posted my own fairly basic question, but I've been stuck trying to figure out what I'm missing for an hour now, trying all kinds of things to get the effect I want. There is a difference between debugging your own code and trying to find out what the heck you're missing when working with another person's code. Especially if that other person's code is damn huge...
June 20, 201312 yr Author Is the Item ID "0" different then the Block "0"? Edit: Never Mind I'm being stupid, give me a bit.
June 20, 201312 yr Wait for it.... Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
June 20, 201312 yr //class level public static int aluminumIngotID; //function level int aluminumIngotID = NerdSpeakConfig.getBlock("ItemAluminumIngot", 713).getInt(); //a different function mod_NerdSpeak.aluminumIngot= (new aluminumIngotID(aluminumIngotID, Material.iron)); Which aluminumIngotID is being used? The class level one. Which is undefined. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
June 20, 201312 yr Author ...And... Got It! What I did was I took out the "int" before the config initialization. The reason it wasn't working was I was initializing the integer twice, instead of changing it with the config! Thank you so much Draco18s!!! Now to fix in-game bugs!
June 21, 201312 yr if you use getUnlocalizedName2() youl crash everytime on the server... http://mag.racked.eu/cimage/i6000/Achievement++get%21/Newb+Modder%21/mca.png[/img]
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.