Red-Hair-Shanks Posted September 2, 2014 Share Posted September 2, 2014 i take the code from hellas but i have one probleam in balancerEdit.. how i can fix it? can only iterate over an array or an instance of java.lang.iterablefor (L2PcInstance p : L2World.getAllPlayers()) Link to comment Share on other sites More sharing options...
0 Extreamer Posted September 2, 2014 Share Posted September 2, 2014 L2World.getInstance().getAllPlayers().values() Try that Link to comment Share on other sites More sharing options...
0 Guest Elfocrash Posted September 2, 2014 Share Posted September 2, 2014 change to for (L2PcInstance p : L2World.getAllPlayers().values()) Link to comment Share on other sites More sharing options...
0 Extreamer Posted September 2, 2014 Share Posted September 2, 2014 (edited) did you fully extract the code from hellas? It seems like to me L2World.getAllPlayers()) it is not working properly? make sure that all the code is fully extracted, also are you getting any errors in eclipse or is everything fine when you compile it ? NOTE: what pack are you using? acis or frozen? Elfo knows it's basically his modified code ! Edited September 2, 2014 by Extreamer Link to comment Share on other sites More sharing options...
0 Red-Hair-Shanks Posted September 2, 2014 Author Share Posted September 2, 2014 change to for (L2PcInstance p : L2World.getAllPlayers().values()) Cannot make a static reference to the non-static method getAllPlayers() from the type L2World change modifier of getallplayers() to static Link to comment Share on other sites More sharing options...
0 Red-Hair-Shanks Posted September 2, 2014 Author Share Posted September 2, 2014 L2World.getInstance().getAllPlayers().values() Try that that work fine! gg tnx :D Link to comment Share on other sites More sharing options...
0 nikosdevil20 Posted September 2, 2014 Share Posted September 2, 2014 (edited) that work fine! gg tnx :D I say to you again. if you have up to interlude client (ex freya hi5) you cannot greate-restore kamael classes with code from hellas. you must edit some things in code for work. and 1 help dont forget to edit CharStat.java Edited September 2, 2014 by nikosdevil20 Link to comment Share on other sites More sharing options...
0 Extreamer Posted September 2, 2014 Share Posted September 2, 2014 that work fine! gg tnx :D no problem buddy, remember that if you want to call for all players online make sure to use it as an instance! I say to you again. if you have up to interlude client (ex freya hi5) you cannot greate-restore kamael classes with code from hellas. you must edit some things in code for work. and 1 help dont forget to edit CharStat.java What are you talking about, just random shit. Topic has been solved, request for lock Link to comment Share on other sites More sharing options...
0 nikosdevil20 Posted September 2, 2014 Share Posted September 2, 2014 no problem buddy, remember that if you want to call for all players online make sure to use it as an instance! What are you talking about, just random shit. Topic has been solved, request for lock idiot i say this for help he. is not only the 3 files in extends.balancer must edit and CharStat.java for work the balancer wakeup Link to comment Share on other sites More sharing options...
0 SweeTs Posted September 2, 2014 Share Posted September 2, 2014 (edited) You are spamming about that over and over again.. Just dont busy, it's gonna be his problem. /locked Edited September 2, 2014 by SweeTs Link to comment Share on other sites More sharing options...
Question
Red-Hair-Shanks
i take the code from hellas but i have one probleam in balancerEdit.. how i can fix it?
can only iterate over an array or an instance of java.lang.iterable
for (L2PcInstance p : L2World.getAllPlayers())
Link to comment
Share on other sites
9 answers to this question
Recommended Posts