Thread: Command Problem

Results 1 to 3 of 3
  1. #1 Command Problem 
    Ain't Messin' Around - Gary Clark Jr.

    Wolfs Darker's Avatar
    Join Date
    Jul 2012
    Posts
    1,530
    Thanks given
    598
    Thanks received
    464
    Rep Power
    252
    well i was trying to add vote4cash and i fully added it and bla bla bla , but the ::claim command aren't giving me spins for wheels and voting points just cash

    This is the command:

    if (playerCommand.startsWith("claim")) {
    if(c.checkVotes(c.playerName)) {
    c.getItems().addItem(c.votingPoints, 1); //rewards vote points
    c.getItems().addItem(c.Wheel, 2); //rewards wheel
    c.getItems().addItem(995, 5000000); //rewards cash
    c.sendMessage("Thanks for voting!");
    } else {
    c.sendMessage("You have not yet voted, type ::vote to do so");
    }
    }

    Whats is wrong? :3
    Reply With Quote  
     

  2. #2  
    Ain't Messin' Around - Gary Clark Jr.

    Wolfs Darker's Avatar
    Join Date
    Jul 2012
    Posts
    1,530
    Thanks given
    598
    Thanks received
    464
    Rep Power
    252
    srls no1? :L
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Nov 2010
    Posts
    1,528
    Thanks given
    1,017
    Thanks received
    348
    Rep Power
    240
    Vote points and wheel spins are not "items" so you can't use:

    c.getItems().addItem(c.votingPoints, 1); //rewards vote points
    c.getItems().addItem(c.Wheel, 2); //rewards wheel


    Instead try something like this:

    c.votingPoints += 1; //rewards vote points
    c.Wheel += 2; //rewards wheel
    None.
    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. Another Command problem :fp:
    By Assist in forum Help
    Replies: 3
    Last Post: 03-09-2012, 01:25 PM
  2. Command problem..
    By Assist in forum Help
    Replies: 10
    Last Post: 03-08-2012, 05:58 AM
  3. Replies: 4
    Last Post: 12-25-2011, 09:33 PM
  4. AUTODONATION PROBLEM!Webpage command problem!
    By Jay Gatsby in forum Help
    Replies: 5
    Last Post: 10-24-2011, 07:06 PM
  5. PI Command Problem
    By Flashy in forum Help
    Replies: 9
    Last Post: 08-14-2011, 10:03 PM
Tags for this Thread
lol

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •