Thread: Voting errors please help.

Results 1 to 4 of 4
  1. #1 Voting errors please help. 
    Banned

    Join Date
    Nov 2012
    Posts
    1,094
    Thanks given
    173
    Thanks received
    136
    Rep Power
    0
    Hey guys i was adding this:



    public boolean checkVotes(String playerName) {
    try {
    String urlString = ""+playerName;
    urlString = urlString.replaceAll(" ", "%20");
    URL url = new URL(urlString);
    BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));
    String results = reader.readLine();
    if(results.length() > 0) {
    if(results.equals("user needs reward..."))
    return true;
    else
    return false;
    }
    } catch (MalformedURLException e) {
    System.out.println("Malformed URL Exception in checkVotes(String playerName)");
    } catch (IOException e) {
    System.out.println("IO Exception in checkVotes(String playerName)");
    }
    return false;
    }


    i usually never have any problems but im getting these errors:


    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Nov 2012
    Posts
    45
    Thanks given
    1
    Thanks received
    6
    Rep Power
    37
    Have you imported the necessary packages?
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Nov 2012
    Posts
    1,094
    Thanks given
    173
    Thanks received
    136
    Rep Power
    0
    Quote Originally Posted by Philosophomore View Post
    Have you imported the necessary packages?


    what packages? i was following this tut expect not adding the voting points..:


    http://www.rune-server.org/runescape...te-points.html
    Reply With Quote  
     

  4. #4  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Import buffered writer and java io

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 72
    Last Post: 01-24-2017, 02:03 PM
  2. Replies: 2
    Last Post: 06-24-2012, 10:59 PM
  3. Replies: 0
    Last Post: 03-03-2012, 08:21 PM
  4. Replies: 0
    Last Post: 03-03-2012, 08:05 PM
  5. Replies: 13
    Last Post: 04-30-2011, 09:29 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •