Thread: Ranks Inheriting Other Ranks Commands

Results 1 to 5 of 5
  1. #1 Ranks Inheriting Other Ranks Commands 
    Registered Member Chris_'s Avatar
    Join Date
    Sep 2012
    Posts
    65
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    How would i do this ive done this

    Code:
    	if (c.playerRights == 5 || c.playerRights == 3)
    		coCommands(c, playerCommand);
    And

    Code:
    	if (c.playerRights == 3 || c.playerRights == 5)
    		coCommands(c, playerCommand);
    But the co-owner rank doesnt Inherit the commands
    Owner Of SeenScape

    Reply With Quote  
     

  2. #2  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    28
    Posts
    4,132
    Thanks given
    1,077
    Thanks received
    1,137
    Rep Power
    5000
    what rank is 3 and what rank is 5?
    Reply With Quote  
     

  3. #3  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    can you not just use

    Code:
     >=
    example:

    Code:
    if(rights == 0) {
    	// player commands
    }
    if(rights >= 1) {
    	// mod / admin / owner
    }
    if(rights >= 2) {
    	// admin / owner
    }
    if(rights == 3) {
    	// owner
    }
    Reply With Quote  
     

  4. #4  
    Registered Member Chris_'s Avatar
    Join Date
    Sep 2012
    Posts
    65
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Leopold Butters Stotch View Post
    what rank is 3 and what rank is 5?
    3 is owner and 5 i made co-owner

    and i put this

    Code:
    	public void coOwnerCommands(Client c, String playerCommand)
    	{
    	}
    Owner Of SeenScape

    Reply With Quote  
     

  5. #5  
    Extreme Donator

    Join Date
    Aug 2012
    Posts
    243
    Thanks given
    105
    Thanks received
    34
    Rep Power
    41
    Quote Originally Posted by Chris_ View Post

    and i put this

    Code:
    	public void coOwnerCommands(Client c, String playerCommand)
    	{
    	}
    Your problem is right there.
    You made the void say coOwnerCommands.

    But you tried to to give playerrights 5 coCommands.

    Try this:
    Code:
    if (c.playerRights == 3 || c.playerRights == 5)
        coOwnerCommands(c, playerCommand);
    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. Ranks and Commands
    By joshii in forum Help
    Replies: 8
    Last Post: 06-11-2012, 08:18 AM
  2. Replies: 1
    Last Post: 08-31-2011, 12:42 PM
  3. Replies: 1
    Last Post: 08-31-2011, 08:37 AM
  4. Post Ranks/Usergroup Ranks
    By Numbers in forum Tweak(s)
    Replies: 24
    Last Post: 03-21-2011, 05:06 AM
  5. Ranks and Commands
    By Mickt3 in forum Help
    Replies: 5
    Last Post: 09-04-2010, 06:24 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
  •