Thread: Playerright

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 Playerright 
    Registered Member PvM Hussain's Avatar
    Join Date
    Aug 2013
    Posts
    266
    Thanks given
    23
    Thanks received
    3
    Rep Power
    11
    Code:
    if(c.playerRights <= 2)
    {
    This is my code now, it says all above playerright 2 cant be shown in the highscore.. and i have playerright 4-10 that is custom rights like donor etc...
    How do i make it so only playerright 3 cant be shown..

    Do i do

    If(c.playerRights == 3) ?
    http://i43.tinypic.com/24v1la8.gif
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Sep 2013
    Posts
    0
    Thanks given
    96
    Thanks received
    104
    Rep Power
    0
    Code:
    if(c.playerRights == 3)
    {
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Cheeeeeese *-*

    CoordinatesRS's Avatar
    Join Date
    Feb 2012
    Age
    27
    Posts
    277
    Thanks given
    31
    Thanks received
    105
    Rep Power
    165
    Code:
    if (c.playerRights < 3 && c.playerRights > 3)
    Without having to make another conditional statement.
    osu! name: Coordinates

    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Registered Member PvM Hussain's Avatar
    Join Date
    Aug 2013
    Posts
    266
    Thanks given
    23
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by CoordinatesRS View Post
    Code:
    if (c.playerRights < 3 && c.playerRights > 3)
    Without having to make another conditional statement.
    Thank you
    http://i43.tinypic.com/24v1la8.gif
    Reply With Quote  
     

  7. #5  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Quote Originally Posted by CoordinatesRS View Post
    Code:
    if (c.playerRights < 3 && c.playerRights > 3)
    Without having to make another conditional statement.
    So that's like saying 3 < x > 3.

    That's wrong.

    x = 3, not more than three and less then three.

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  8. #6  
    Banned

    Join Date
    Nov 2013
    Posts
    170
    Thanks given
    67
    Thanks received
    33
    Rep Power
    0
    Quote Originally Posted by CoordinatesRS View Post
    Code:
    if (c.playerRights < 3 && c.playerRights > 3)
    Without having to make another conditional statement.
    why not just
    if (c.playerRights != 3) {
    }

    //newbs
    Reply With Quote  
     

  9. Thankful user:


  10. #7  
    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
    Quote Originally Posted by Eclipse View Post
    So that's like saying 3 < x > 3.

    That's wrong.

    x = 3, not more than three and less then three.
    It wouldn't be wrong if && was changed to || lel
    Reply With Quote  
     

  11. #8  
    Banned

    Join Date
    Nov 2013
    Posts
    170
    Thanks given
    67
    Thanks received
    33
    Rep Power
    0
    Quote Originally Posted by Samuel View Post
    It wouldn't be wrong if && was changed to || lel
    no its wrong just use
    Code:
    !=
    Reply With Quote  
     

  12. #9  
    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
    Quote Originally Posted by Jigglypuff View Post
    no its wrong just use
    Code:
    !=
    No it's not wrong... If you changed the && to ||

    if value is < 3 Or value is > 3 means that it could be any value that is not 3.
    Reply With Quote  
     

  13. #10  
    Banned

    Join Date
    Nov 2013
    Posts
    170
    Thanks given
    67
    Thanks received
    33
    Rep Power
    0
    Quote Originally Posted by Samuel View Post
    No it's not wrong... If you changed the && to ||

    if value is < 3 Or value is > 3 means that it could be any value that is not 3.
    you compare this sam,

    if(c.playerRight != 3)

    or

    if (c.playerRights < 3 || c.playerRights > 3)
    Reply With Quote  
     

  14. Thankful user:


Page 1 of 2 12 LastLast

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. Easyier playerrights
    By Luke in forum Snippets
    Replies: 8
    Last Post: 09-22-2011, 01:01 AM
  2. [Snip]More crowns[for playerRights]
    By Galkon in forum Snippets
    Replies: 23
    Last Post: 04-20-2009, 05:54 PM
  3. Replies: 2
    Last Post: 11-25-2008, 12:58 AM
  4. How To Add A Custom Spell (Now With PlayerRights!)
    By [М]ęŋąċę© in forum Tutorials
    Replies: 48
    Last Post: 05-11-2008, 01:43 PM
  5. Organizing Your playerRights Int
    By Nets8 in forum Tutorials
    Replies: 0
    Last Post: 02-18-2008, 09:38 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
  •