Thread: Why does this not work

Results 1 to 4 of 4
  1. #1 Why does this not work 
    Registered Member Emre's Avatar
    Join Date
    Jan 2014
    Posts
    596
    Thanks given
    91
    Thanks received
    61
    Rep Power
    7
    This doesn't work

    Code:
    if (playerCommand.startsWith("bank") && c.playerRights == 5) {
    	        	if (c.inWild() || c.inDuel)
    	        	c.sendMessage("You can't use this here");
    	        } else {
    	        	c.getPA().openUpBank();
    		}
    	}
    When im outside of the wildy or duel nothing happens

    but when im inside it it says the message

    but it does work if i make it a dialogue action
    Reply With Quote  
     

  2. #2  
    Registered Member Seth's Avatar
    Join Date
    Feb 2013
    Posts
    644
    Thanks given
    179
    Thanks received
    101
    Rep Power
    20
    Quote Originally Posted by Emrage View Post
    This doesn't work

    Code:
    if (playerCommand.startsWith("bank") && c.playerRights == 5) {
    	        	if (c.inWild() || c.inDuel)
    	        	c.sendMessage("You can't use this here");
    	        } else {
    	        	c.getPA().openUpBank();
    		}
    	}
    When im outside of the wildy or duel nothing happens

    but when im inside it it says the message

    but it does work if i make it a dialogue action
    Code:
    if (playerCommand.startsWith("bank") && c.playerRights == 5) {
    	        	if (c.inWild() || c.inDuel) {
    	        	c.sendMessage("You can't use this here");
    	        } else {
    	        	c.getPA().openUpBank();
    		}
    	}
    There you go all fixed you were just missing a open bracket which screwed everything up.
    Reply With Quote  
     

  3. #3  
    Registered Member Emre's Avatar
    Join Date
    Jan 2014
    Posts
    596
    Thanks given
    91
    Thanks received
    61
    Rep Power
    7
    Quote Originally Posted by Reminiscence View Post
    Code:
    if (playerCommand.startsWith("bank") && c.playerRights == 5) {
    	        	if (c.inWild() || c.inDuel) {
    	        	c.sendMessage("You can't use this here");
    	        } else {
    	        	c.getPA().openUpBank();
    		}
    	}
    There you go all fixed you were just missing a open bracket which screwed everything up.
    Thanks!
    Reply With Quote  
     

  4. #4  
    Registered Member Seth's Avatar
    Join Date
    Feb 2013
    Posts
    644
    Thanks given
    179
    Thanks received
    101
    Rep Power
    20
    Quote Originally Posted by Emrage View Post
    Thanks!
    No problem.
    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. why does this not work?
    By nonononooooooo in forum Help
    Replies: 3
    Last Post: 12-26-2012, 07:51 PM
  2. Why does this not work correctly
    By Chris_ in forum Help
    Replies: 1
    Last Post: 10-07-2012, 10:23 PM
  3. why dose this not work :(
    By sharkey da baws in forum Help
    Replies: 4
    Last Post: 10-03-2012, 05:02 AM
  4. Why does this not work.
    By nathanrr44 in forum Help
    Replies: 3
    Last Post: 04-10-2012, 10:08 PM
  5. Why does this not work?
    By Wake in forum Help
    Replies: 0
    Last Post: 01-06-2011, 10:16 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •