Thread: Command Handler

Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11  
    Banned

    Join Date
    Jul 2007
    Age
    28
    Posts
    1,438
    Thanks given
    43
    Thanks received
    21
    Rep Power
    0
    cant get the file
     

  2. #12  
    Whitey
    Guest
    I've Attatched the File Here.
     

  3. #13  
    ~Legend~
    Guest
    I have the exact thing already done . This isn't yours, give credits.
     

  4. #14  
    Member

    Join Date
    Oct 2006
    Age
    30
    Posts
    420
    Thanks given
    5
    Thanks received
    2
    Rep Power
    0
    when did i ever say it was mine O.o? i didnt even ask for credits ... this is everyones not mine its everyones i just posted cause i never seen one on these forums...


    Org
    [Only registered and activated users can see links. ]
     

  5. #15  
    Registered Member
    Cloke's Avatar
    Join Date
    Nov 2006
    Age
    27
    Posts
    747
    Thanks given
    14
    Thanks received
    1
    Rep Power
    130
    i get 1 ERROR

    Code:
    CommandHandler.java:18: ';' expected
            }
            ^
    1 error
    
    Satan's Isle Has Been Compiled SuccesFull !
    
    Press any key to continue . . .
    help

    mastah
     

  6. #16  
    project-rs owner
    Join Date
    Sep 2006
    Age
    29
    Posts
    914
    Thanks given
    4
    Thanks received
    4
    Rep Power
    49
    mastah put ; on line 17
     

  7. #17  
    Registered Member

    Join Date
    Jul 2006
    Age
    27
    Posts
    1,247
    Thanks given
    0
    Thanks received
    5
    Rep Power
    190
    Quote Originally Posted by laurens View Post
    mastah put ; on line 17
    line 18
     

  8. #18  
    Whitey
    Guest
    If he put it on 18 wouldnt it be };
    ?
     

  9. #19  
    I'm unique


    Join Date
    Oct 2006
    Age
    29
    Posts
    708
    Thanks given
    0
    Thanks received
    1
    Rep Power
    82
    How can I add a item command? Please someone, post a example.
    Sincerly yours,
    Simox.
     

  10. #20  
    Member

    Join Date
    Oct 2006
    Age
    30
    Posts
    420
    Thanks given
    5
    Thanks received
    2
    Rep Power
    0
    ok if you want to make an item command make it look like this:
    if (command.equalsIgnoreCase("test"))
    {
    p.addItem(995, 123)
    }
    and do not delete the p. before the additem
    and add
    client p = (client) server.playerHandler.players[a];
    after the { in
    public void CommandHandler(String command, int a)
    {
    making it look like this:
    public void CommandHandler(String command, int a)
    {
    client p = (client) server.playerHandler.players[a];
    so with the command it should look like this:
    public void CommandHandler(String command, int a)
    {
    client p = (client) server.playerHandler.players[a];

    if (command.equalsIgnoreCase("test"))
    {
    p.addItem(995, 123)
    }
    }


    Org
    [Only registered and activated users can see links. ]
     

Page 2 of 3 FirstFirst 123 LastLast

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. Command Handler
    By tucybro in forum Snippets
    Replies: 4
    Last Post: 02-28-2010, 07:56 AM
  2. Erm, command handler...
    By Mister Maggot in forum Help
    Replies: 3
    Last Post: 10-10-2009, 07:39 PM
  3. Command Handler - Uses Tjays command base.
    By Greyfield in forum Tutorials
    Replies: 17
    Last Post: 09-19-2009, 11:06 PM
  4. Command Handler
    By maham. in forum Tutorials
    Replies: 0
    Last Post: 09-16-2009, 04:54 AM
  5. Command Handler packet
    By Enjoi in forum Help
    Replies: 5
    Last Post: 07-08-2009, 07:16 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
  •