Vegas Posted December 30, 2012 Posted December 30, 2012 forum hide some om code with -beep- fix it somehow or pastebin it!
cris_cros Posted January 25, 2013 Posted January 25, 2013 oh my u just made my day thx for this great share
HarryPokeR Posted February 3, 2013 Posted February 3, 2013 work in Interlude? MIPOS 3EREI KANENAS?¿?¿?¿?¿
FunkyLOveR Posted February 25, 2013 Posted February 25, 2013 I dont understand where to put the code :/
GoldenBoy™ Posted March 5, 2013 Posted March 5, 2013 Good job my friend but you must fix something because if you start your pin with "0" and for example you have the pin "0123", in your txt file you will have the pin "123" not "0123"! Sorry if i am wrong! :) try this: StringTokenizer st = new StringTokenizer(command); st.nextToken(); String a-beep-t = null; - int pin1 = 0; - int pin2 = 0; - int pin3 = 0; - int pin4 = 0; + String pin1 = null; + String pin2 = null; + String pin3 = null; + String pin4 = null; String message = ""; try { a-beep-t = st.nextToken(); - pin1 = Integer.parseInt(st.nextToken()); - pin2 = Integer.parseInt(st.nextToken()); - pin3 = Integer.parseInt(st.nextToken()); - pin4 = Integer.parseInt(st.nextToken()); + if (st.hasMoreTokens()) pin1 = st.nextToken(); + if (st.hasMoreTokens()) pin2 = st.nextToken(); + if (st.hasMoreTokens()) pin3 = st.nextToken(); + if (st.hasMoreTokens()) pin4 = st.nextToken(); while(st.hasMoreTokens()) message = message + st.nextToken() + " ";
xdem Posted March 5, 2013 Posted March 5, 2013 but if that "if" is false then the pin remains null, and then errors appear
makano Posted March 9, 2013 Posted March 9, 2013 can you guys share this (change the imports and all things needed) to l2jserver project? i tryed but I still get an error with L2FolkInstance and dont know how to fix it. thanks
GsL Posted June 4, 2013 Posted June 4, 2013 mono sto Ellda to vlepoume auto ahhaha /** * @author Autos! 1-0 * */
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now