Thread: [317] [PIi] Double Yell and Login Messages

Results 1 to 6 of 6
  1. #1 [317] [PIi] Double Yell and Login Messages 
    Registered Member Blood_Barrage's Avatar
    Join Date
    Jul 2013
    Posts
    19
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    When i log into a donator account, it had double login messages. When i yell on a donator account it has double yell messages.

    if this helps here is a screenshot



    I need help fixing this, its not really clear to me whats causing this.

    Anyone please help?
    Reply With Quote  
     

  2. #2  
    Member of the Imagine Cult

    Join Date
    Feb 2013
    Posts
    519
    Thanks given
    21
    Thanks received
    7
    Rep Power
    59
    Well, if you Donator rank depends on rights, this is how you fix it.

    Where ever the login message is generated from, there should be two thing

    One indicating the donator rank, and one should be like > 0. Change > 0 to = 0.

    That should probably fix the problem, if thats it. :\ Kind of hard to explain, so post the file with the login message coding and I'll do it for ya.
    Reply With Quote  
     

  3. #3  
    Registered Member Blood_Barrage's Avatar
    Join Date
    Jul 2013
    Posts
    19
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by fiveriverflo View Post
    Well, if you Donator rank depends on rights, this is how you fix it.

    Where ever the login message is generated from, there should be two thing

    One indicating the donator rank, and one should be like > 0. Change > 0 to = 0.

    That should probably fix the problem, if thats it. :\ Kind of hard to explain, so post the file with the login message coding and I'll do it for ya.
    you know, im a complete idiot.
    Reply With Quote  
     

  4. #4  
    Server Developer
    Argyros's Avatar
    Join Date
    Apr 2011
    Posts
    498
    Thanks given
    25
    Thanks received
    31
    Rep Power
    23
    Quote Originally Posted by Blood_Barrage View Post
    you know, im a complete idiot.
    That might be the issue.
    You need to have a else if statement.
    Reply With Quote  
     

  5. Thankful users:


  6. #5  
    Donator


    Join Date
    Mar 2011
    Posts
    2,350
    Thanks given
    1,193
    Thanks received
    824
    Rep Power
    856
    post the code
    Reply With Quote  
     

  7. #6  
    Server Developer
    Argyros's Avatar
    Join Date
    Apr 2011
    Posts
    498
    Thanks given
    25
    Thanks received
    31
    Rep Power
    23
    You could do something like this
    Code:
    if (c.playerRights == 0){
    c2.sendMessage("<col=255>[Player]</col>"+ Misc.optimizeText(c.playerName) +": "
    											+ Misc.optimizeText(playerCommand.substring(5)));
    }else if (c.playerRights == 4){
    c2.sendMessage("<col=255125000>[<img=0>Donator]"+ Misc.optimizeText(c.playerName) +": "
    												+ Misc.optimizeText(playerCommand.substring(5)) +"");
    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: 4
    Last Post: 05-19-2011, 03:04 AM
  2. [ 317 ] Login Message [ 317 ]
    By Kuroxasch in forum Help
    Replies: 2
    Last Post: 12-16-2010, 10:16 AM
  3. Replies: 6
    Last Post: 07-04-2010, 08:01 AM
  4. Replies: 8
    Last Post: 07-15-2009, 12:40 PM
  5. Global Login and Logout Messages
    By Runite in forum Tutorials
    Replies: 11
    Last Post: 09-19-2007, 04:12 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
  •