petr.plasan Posted January 12, 2015 Share Posted January 12, 2015 Hello guys can me help with this ? I use Individual VoteManger a dont works me .. i Have problem with protected static int getHopZoneVotes() protected static int getHopZoneVotes() { int votes = -1; String Hopzonelink = Config.VOTE_LINK_HOPZONE; InputStreamReader isr = null; BufferedReader br = null; try { URLConnection con = new URL(Hopzonelink).openConnection(); con.addRequestProperty("User-Agent", "Mozilla/4.76"); isr = new InputStreamReader(con.getInputStream()); br = new BufferedReader(isr); String line; while ((line = br.readLine()) != null) { if (line.contains("rank anonymous tooltip")) { votes = Integer.valueOf(line.split(">")[2].replace("</span", "")); break; } } br.close(); isr.close(); } catch (Exception e) { System.out.println("[VoteRewardManager]: Problem occured while getting Hopzone votes. Error Trace: " + e.getMessage()); } return votes; } whats is wrong ? Can me help ? please ?? :) Quote Link to comment Share on other sites More sharing options...
0 Tessa Posted January 18, 2015 Share Posted January 18, 2015 Get the latest one... Quote Link to comment Share on other sites More sharing options...
0 szawex Posted January 18, 2015 Share Posted January 18, 2015 (edited) J have this same problem. Edited January 18, 2015 by szawex Quote Link to comment Share on other sites More sharing options...
0 petr.plasan Posted January 26, 2015 Author Share Posted January 26, 2015 Get the latest one... U have latest ? :) please ? Quote Link to comment Share on other sites More sharing options...
0 Tessa Posted January 26, 2015 Share Posted January 26, 2015 U have latest ? :) please ? It's already in l2jfrozen's source... Quote Link to comment Share on other sites More sharing options...
Question
petr.plasan
Hello guys can me help with this ? I use Individual VoteManger a dont works me .. i Have problem with protected static int getHopZoneVotes()
whats is wrong ? Can me help ? please ?? :)
Link to comment
Share on other sites
4 answers to this question
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.