Thread: p.username.equalsIgnoreCase for 2 people?

Results 1 to 4 of 4
  1. #1 p.username.equalsIgnoreCase for 2 people? 
    Registered Member Mr Fox's Avatar
    Join Date
    Feb 2008
    Posts
    197
    Thanks given
    11
    Thanks received
    2
    Rep Power
    6
    how can i make:

    if (cmd[0].equals("giveadmin") && p.username.equalsIgnoreCase("pkd a cookie")) {

    into 2 people? so two people can run that command rather than that 1 username?
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jan 2009
    Posts
    1,319
    Thanks given
    71
    Thanks received
    105
    Rep Power
    334
    if (cmd[0].equals("giveadmin") && p.username.equalsIgnoreCase("pkd a cookie") && p.username.equalsIgnoreCase("name")) {
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2008
    Posts
    150
    Thanks given
    0
    Thanks received
    0
    Rep Power
    38
    if (cmd[0].equals("giveadmin") && p.username.equalsIgnoreCase("pkd a cookie") || cmd[0].equals("giveadmin") && p.username.equalsIgnoreCase("other username")) {
    Not allowed
    Reply With Quote  
     

  4. #4  
    Member p.username.equalsIgnoreCase for 2 people? Market Banned


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    35
    Posts
    12,574
    Thanks given
    199
    Thanks received
    7,106
    Rep Power
    5000
    Code:
    if ((cmd[0].equals("giveadmin")) && (p.username.equalsIgnoreCase("pkd a cookie") || p.username.equalsIgnoreCase("otherName"))) {

    Attached imageAttached image
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •