Thread: [PI/SS] Vote4cash Problems

Results 1 to 5 of 5
  1. #1 [PI/SS] Vote4cash Problems 
    Exiles Developer


    Join Date
    May 2009
    Age
    28
    Posts
    316
    Thanks given
    55
    Thanks received
    25
    Rep Power
    86
    Base: Soul Split (Close to project insanity)
    Problem: I used the Vote for cash revision 2, now that i finished it. (USING NON MYSQL SERVER SIDE)
    So oddly, after they vote they type a command ingame, and it works for anyone but usernames with a space, i have looked into it, tested with it, done everything i can.. But i can't fix it..
    It displays this sentence:

    Thank you for voting for Runexile, you can vote every 24 hours!
    When a name with no spaces types it in.
    It displays this sentence:

    Sorry, you have already claimed your reward.
    When they don't have a space in their name..

    Errors(Compiling Errors): None
    Other Information/Media(Pictures, etc):
    Here is where i think the problem is:

    public static boolean checkVotes(String playerName) {
    try {
    URL url = new URL("http://rune-xile.net/vote.php?type=checkvote&username="+playerName);
    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 had a feeling it was the link, i checked it but found nothing.
    I don't fully understand some of the other things it may be, i also think it could be my command:

    if (playerCommand.equalsIgnoreCase("myreward"))
    {
    if(c.checkVotes(c.playerName)) {
    c.Votepoints += 1;
    c.sendMessage("Thank you for voting for Runexile, you can vote every 24 hours!");
    } else
    c.sendMessage("Sorry, you have already claimed your reward.");
    }
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Oct 2010
    Posts
    1,730
    Thanks given
    56
    Thanks received
    97
    Rep Power
    0
    I can make you one like this:
    Vote4Cash
    works perfectly
    Reply With Quote  
     

  3. #3  
    I'm President Carter


    Join Date
    Jan 2011
    Posts
    1,204
    Thanks given
    17
    Thanks received
    222
    Rep Power
    144
    Problem with that one is that you don't actually have to vote to get the reward. You only have to go to the vote page. Talk to "PixelThis" he has a flawless one he sells for $30.


    Reply With Quote  
     

  4. #4  
    Exiles Developer


    Join Date
    May 2009
    Age
    28
    Posts
    316
    Thanks given
    55
    Thanks received
    25
    Rep Power
    86
    Quote Originally Posted by $The True Killer$ View Post
    Problem with that one is that you don't actually have to vote to get the reward. You only have to go to the vote page. Talk to "PixelThis" he has a flawless one he sells for $30.
    Ok thank you a ton
    Reply With Quote  
     

  5. #5  
    I'm President Carter


    Join Date
    Jan 2011
    Posts
    1,204
    Thanks given
    17
    Thanks received
    222
    Rep Power
    144
    Np anytime


    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. Vote4cash!
    By Someone in forum Help
    Replies: 9
    Last Post: 12-10-2011, 07:26 PM
  2. Vote4cash.
    By Someone in forum Selling
    Replies: 1
    Last Post: 02-02-2011, 09:11 PM
  3. [PI] Vote4Cash Help
    By Dell in forum Help
    Replies: 8
    Last Post: 01-03-2011, 06:31 PM
  4. vote4cash bug?
    By Mickt3 in forum Help
    Replies: 17
    Last Post: 12-31-2010, 04:44 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
  •