Thread: Little more SetRights help

Results 1 to 2 of 2
  1. #1 Little more SetRights help 
    Registered Member Enyll's Avatar
    Join Date
    Aug 2016
    Posts
    121
    Thanks given
    21
    Thanks received
    1
    Rep Power
    13
    How do you make this code set all account rights that are currently set on 2 to 0, when there usernames are not added inside of the Settings.java String[].

    Code:
    for	(int i = 0; i < Settings.Owner.length; i++) {
    			final String username = this.getDisplayName();
    			if (Settings.Owner[i].equals(username)) {
    				this.setRights(2);
    				appearence.loadAppearanceBlock();
    			} else if (Settings.Owner.length == 0) {
    				if (this.getRights() == 2) {
    					this.setRights(0);
    				}
    			}
    		}
    Thank you.
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Jan 2018
    Posts
    22
    Thanks given
    5
    Thanks received
    2
    Rep Power
    0
    LMFAO, just stop bro go work on a calculator or something simple before trying to learn from rsps lol, theyll only confuse you when it comes to the core java concepts.


    things you need to know:

    where are they stored?
    how could you compare? maybe you should compare them to all ranks, if they aren't 'staff' then they are player.

    but honestly i could barely understand your question re-word it please.
    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. Replies: 7
    Last Post: 10-02-2010, 06:52 PM
  2. my 2nd stat sprite firemaking a little more fun!
    By mr_moo21 in forum Graphics
    Replies: 10
    Last Post: 01-10-2010, 10:35 PM
  3. Replies: 5
    Last Post: 05-10-2009, 10:48 PM
  4. Replies: 0
    Last Post: 03-05-2009, 03:32 AM
  5. [req] I need a little bit of help
    By Kronix in forum Tutorials
    Replies: 9
    Last Post: 04-22-2008, 08:00 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
  •