- 0
This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
down
Can some1 explain me why this god damn Tokenizer doesnt work with this:
public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if (command.equalsIgnoreCase("countppl")) { StringTokenizer st = new StringTokenizer(target); String char1 = ""; String char2 = ""; String char3 = ""; String char4 = ""; if (st.hasMoreTokens()) char1 = st.nextToken(); if (st.hasMoreTokens()) char2 = st.nextToken(); if (st.hasMoreTokens()) char3 = st.nextToken(); if (st.hasMoreTokens()) char4 = st.nextToken(); activeChar.sendMessage("Selected: 1:"+char1+", 2:"+char2+", 3:"+char3+", 4:"+char4); }Same goes for:
and
0 answers to this question
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