Thread: [PI] problems with the ::item command plz help

Results 1 to 4 of 4
  1. #1 [PI] problems with the ::item command plz help 
    Registered Member
    Join Date
    Sep 2010
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    everytime i try to use the item command for my pi source it keeps saying wrong usage: (Exitem_id_amount)(::item 995 1)) some plz help?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Oct 2010
    Age
    30
    Posts
    612
    Thanks given
    20
    Thanks received
    7
    Rep Power
    9
    try this
    if (playerCommand.startsWith("item") && c.playerRights >= 2) {
    try {
    String[] args = playerCommand.split(" ");
    if (args.length == 3) {
    int newItemID = Integer.parseInt(args[1]);
    int newItemAmount = Integer.parseInt(args[2]);
    if ((newItemID <= 20000) && (newItemID >= 0)) {
    c.getItems().addItem(newItemID, newItemAmount);
    } else {
    c.sendMessage("No such item.");
    }
    } else {
    c.sendMessage("Use as :ickup 995 200");
    }
    } catch(Exception e) {

    }
    }
    Reply With Quote  
     

  3. #3  
    Registered Member Santi Cazorla's Avatar
    Join Date
    Aug 2009
    Posts
    1,137
    Thanks given
    258
    Thanks received
    55
    Rep Power
    7
    your using it wrong then?

    its ::item 1111 1

    1111 = item code
    1 = the amount of the item you want
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Oct 2010
    Age
    30
    Posts
    612
    Thanks given
    20
    Thanks received
    7
    Rep Power
    9
    yes try ::item 1111 1
    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. ::vote command problems
    By Ninja assassin in forum Help
    Replies: 7
    Last Post: 09-16-2010, 10:27 PM
  2. Command problems
    By Vanikan in forum Help
    Replies: 2
    Last Post: 07-29-2010, 01:30 AM
  3. item problems
    By Romania Clan in forum Help
    Replies: 6
    Last Post: 03-21-2010, 05:05 PM
  4. Command problems hard to explain.
    By P A N I C in forum Help
    Replies: 12
    Last Post: 07-16-2009, 09:09 PM
  5. ::char command problems
    By giggadude in forum Help
    Replies: 11
    Last Post: 07-13-2009, 11:18 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
  •