Pliss Help fix the code by Maximus

Discussion in 'Programming' started by yeison, May 23, 2016.

Thread Status:
Not open for further replies.
  1. [​IMG] [​IMG]
     
    #1 yeison, May 23, 2016
    Last edited: May 23, 2016
  2. Its getonlineplayers.size().
     
  3. ????
    [​IMG]
     
  4. Do:
    Bukkit.getOnlinePlayers().size();
     
  5.  
    #5 yeison, May 23, 2016
    Last edited: May 23, 2016
  6. Bukkit.getOnlinePlayers().toArray(new Player[Bukkit.getOnlinePlayers().size()])

    to get an array (using the first post's code)
     
  7. You definitely don't know java. Sorry to tell you that. Hover over the .lenth method. What does it say?
     
  8. Your not giving the right answer. The line with the error is caused by .getOnlinePlayers() not returning an array anymore, so it cannot be set to an array variable.
     
  9. [​IMG]
    skype to look at the code:Marco kino ruz
     
    #9 yeison, May 23, 2016
    Last edited: May 23, 2016
  10. @yeison Is it soo hard to tell it here?
     
  11. yes u.u
     
  12. Is this just decompiled code? I really hope it is and that noone actually writes like that...
     
    • Agree Agree x 1
    • Winner Winner x 1
  13. Step 1: Learn Java

    Problem solved
     
    • Agree Agree x 1
  14. pff not speak English
    but if my code
     
  15. way to ignore my post @yeison :(
     
  16. not
     
  17. He's right tho.. It's very clear you have no idea what you're doing at all. Not even a little bit.
     
    • Agree Agree x 1
  18. [​IMG]
     
    #18 yeison, May 23, 2016
    Last edited: May 23, 2016
  19. now your missing the .length from the first post that was there before
     
  20. Are you sure this is your code?
     
Thread Status:
Not open for further replies.