aneos Posted December 28, 2012 Posted December 28, 2012 great share tested and working kepp it up!! Quote
Vegas Posted December 30, 2012 Posted December 30, 2012 forum hide some om code with -beep- fix it somehow or pastebin it! Quote
cris_cros Posted January 25, 2013 Posted January 25, 2013 oh my u just made my day thx for this great share Quote
HarryPokeR Posted February 3, 2013 Posted February 3, 2013 work in Interlude? MIPOS 3EREI KANENAS?¿?¿?¿?¿ Quote
FunkyLOveR Posted February 25, 2013 Posted February 25, 2013 I dont understand where to put the code :/ Quote
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() + " "; Quote
xdem Posted March 5, 2013 Posted March 5, 2013 but if that "if" is false then the pin remains null, and then errors appear Quote
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 Quote
GsL Posted June 4, 2013 Posted June 4, 2013 mono sto Ellda to vlepoume auto ahhaha /** * @author Autos! 1-0 * */ Quote
Recommended Posts
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.