Thread: [PI] Commands not working? (will rep++)

Results 1 to 10 of 10
  1. #1 [PI] Commands not working? (will rep++) 
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    So I've made a ton of commands, but they aren't working! is there something wrong with my code?
    Theres a few of them:
    Code:
    if (c.playerRights >= 0) {
    		    if (playerCommand.equalsIgnoreCase("varrock")) {
                c.sendMessage("You teleport to Varrock.");    
                c.getPA().spellTeleport(3238, 3246, 0);
    Code:
    if (c.playerRights >= 2) {
                if (playerCommand.equalsIgnoreCase("admin")) {
    				c.sendMessage("Congratulations!");
    				c.getItems().addItem(1038, 1);
    				c.getItems().addItem(1040, 1);
    				c.getItems().addItem(1042, 1);
    				c.getItems().addItem(1044, 1);
    				c.getItems().addItem(1046, 1);
    				c.getItems().addItem(1048, 1);
    				c.getItems().addItem(1053, 1);
    				c.getItems().addItem(1055, 1);
    				c.getItems().addItem(1057, 1);
    				c.sendMessage("You stumble across a ton of items!");
    Code:
    if (playerCommand.equalsIgnoreCase("master") && c.playerRights >= 2) {
    				for (int i = 0; i < 21; i++) {
    					c.playerLevel[i] = 99;
    					c.playerXP[i] = c.getPA().getXPForLevel(100);
    					c.getPA().refreshSkill(i);	
    					c.sendMessage("You now have level 99 in all skills.");
    Code:
    if (playerCommand.equalsIgnoreCase("staff")) {
    				c.sendMessage("The only current staff member is Mod Phat, who is the developer.")
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    bump
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    May 2009
    Posts
    1,440
    Thanks given
    655
    Thanks received
    530
    Rep Power
    366
    Did you add closing brackets?

    Also please support the old school section.
    http://www.rune-server.org/site/foru...on-please.html
    Retired from RSPS development 2008-2018
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    Quote Originally Posted by Dashboard View Post
    Did you add closing brackets?

    Also please support the old school section.
    http://www.rune-server.org/site/foru...on-please.html
    yes.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Freezia's Avatar
    Join Date
    Feb 2011
    Posts
    6,013
    Thanks given
    1,147
    Thanks received
    758
    Rep Power
    1311
    Code:
    if (playerCommand.equalsIgnoreCase("staff")) {
    				c.sendMessage("The only current staff member is Mod Phat, who is the developer.")
    [/QUOTE]

    Does this one have a closing bracket? Also when you compile do you get errors? try this...

    Code:
    if (playerCommand.equalsIgnoreCase("staff")) {
    				c.sendMessage("The only current staff member is Mod Phat, who is the developer.")
    }


    Host your RUNESCAPE PRIVATE SERVER on the cheapest and flagship provider on Rune-Server! Now equipped with DDOS Protection!.


    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    Well yes.. im getting these annoying fucking errors and when I fix them more errors pop up , but they're in actionhandler and I have no idea how to fix atm.

    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    May 2009
    Posts
    1,440
    Thanks given
    655
    Thanks received
    530
    Rep Power
    366
    Your server won't update unless you fix those errors first.
    Retired from RSPS development 2008-2018
    Reply With Quote  
     

  8. #8  
    Registered Member
    LunarKnight's Avatar
    Join Date
    Jan 2009
    Age
    32
    Posts
    676
    Thanks given
    7
    Thanks received
    29
    Rep Power
    87
    You're missing an extra int in your other problem.
    And your server won't update until you fix all of your errors.
    That's why your commands aren't working.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Freezia's Avatar
    Join Date
    Feb 2011
    Posts
    6,013
    Thanks given
    1,147
    Thanks received
    758
    Rep Power
    1311
    You have to fix those eroors LOL ignoring them won't do anything...


    Host your RUNESCAPE PRIVATE SERVER on the cheapest and flagship provider on Rune-Server! Now equipped with DDOS Protection!.


    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Jan 2012
    Posts
    112
    Thanks given
    4
    Thanks received
    10
    Rep Power
    12
    Lol those errors must be fixed otherwise your thing wont compile. DOwnload the PI or find the .rar and replace actionhandler with the old one.
    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. commands not working right :s
    By OodlesOfNoodles in forum Help
    Replies: 8
    Last Post: 12-28-2011, 07:30 AM
  2. [PI] Commands Not Working
    By Q Destiny Q in forum Help
    Replies: 1
    Last Post: 08-27-2010, 07:21 AM
  3. BattleScape Commands not Working
    By Solid in forum Help
    Replies: 1
    Last Post: 04-25-2010, 10:06 AM
  4. Replies: 6
    Last Post: 12-09-2009, 09:25 AM
  5. commands not working !!!
    By RuneBlaze in forum Help
    Replies: 14
    Last Post: 05-11-2009, 01:41 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
  •