Thread: Autodonation: found int,int,string required: int, string, string

Results 1 to 5 of 5
  1. #1 Autodonation: found int,int,string required: int, string, string 
    Registered Member Skwat's Avatar
    Join Date
    May 2011
    Posts
    83
    Thanks given
    2
    Thanks received
    5
    Rep Power
    1
    Hey,

    I have an error with my donation system.
    The compiler says:

    required:int, string, string
    found: int, int, string


    The code:


    if(MYSQL.checkDonation(q12, donator, playerName)){

    if(MYSQL.donationGiven(playerName))
    {
    sM("Thank you for donating!");
    sM("You have now " + donator + " callcredits.");
    }
    }




    Check Donation method:

    public static boolean checkDonation(int q12, String donator, String playerName)
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    May 2011
    Posts
    1,773
    Thanks given
    854
    Thanks received
    853
    Rep Power
    0
    apparently you declared donator as a string try declare it as an int
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2012
    Posts
    102
    Thanks given
    7
    Thanks received
    8
    Rep Power
    11
    Edit: Derp, sorry.
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Jun 2012
    Posts
    438
    Thanks given
    13
    Thanks received
    27
    Rep Power
    0
    post your checkdonation method i need to see the usage for the string donor
    Reply With Quote  
     

  5. #5  
    Registered Member Skwat's Avatar
    Join Date
    May 2011
    Posts
    83
    Thanks given
    2
    Thanks received
    5
    Rep Power
    1
    Thanks for helping, i fixed it.
    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. String Help
    By Lyfyl Il in forum Help
    Replies: 1
    Last Post: 04-01-2011, 06:20 PM
  2. String IDs...
    By McGuffin in forum Help
    Replies: 0
    Last Post: 02-21-2011, 12:34 AM
  3. [Java] String.contains(String)
    By Shoes in forum Application Development
    Replies: 9
    Last Post: 10-26-2010, 01:13 AM
  4. [508] String Id's
    By Glabay in forum Configuration
    Replies: 22
    Last Post: 05-30-2009, 05:30 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
  •