Thread: [Emu]Private Messaging not working!

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 [Emu]Private Messaging not working! 
    Registered Member
    Division's Avatar
    Join Date
    Dec 2009
    Age
    29
    Posts
    2,208
    Thanks given
    41
    Thanks received
    78
    Rep Power
    97
    The private messaging is bugged, when you pm someone he/she cant pm back.
    Need fix please?

    Im using project insanity.
    If i enable splitchat, and i PM someone the other person cant PM back.

    /**
    * Private Messaging
    **/
    public void logIntoPM() {
    setPrivateMessaging(2);
    for(int i1 = 0; i1 < Config.MAX_PLAYERS; i1++) {
    Player p = Server.playerHandler.players[i1];
    if(p != null && p.isActive) {
    Client o = (Client)p;
    if(o != null) {
    o.getPA().updatePM(c.playerId, 1);
    }
    }
    }
    boolean pmLoaded = false;

    for(int i = 0; i < c.friends.length; i++) {
    if(c.friends[i] != 0) {
    for(int i2 = 1; i2 < Config.MAX_PLAYERS; i2++) {
    Player p = Server.playerHandler.players[i2];
    if (p != null && p.isActive && Misc.playerNameToInt64(p.playerName) == c.friends[i]) {
    Client o = (Client)p;
    if(o != null) {
    if (c.playerRights >= 2 || p.privateChat == 0 || (p.privateChat == 1 && o.getPA().isInPM(Misc.playerNameToInt64(c.playerNa me)))) {
    loadPM(c.friends[i], 1);
    pmLoaded = true;
    }
    break;
    }
    }
    }
    if(!pmLoaded) {
    loadPM(c.friends[i], 0);
    }
    pmLoaded = false;
    }
    for(int i1 = 1; i1 < Config.MAX_PLAYERS; i1++) {
    Player p = Server.playerHandler.players[i1];
    if(p != null && p.isActive) {
    Client o = (Client)p;
    if(o != null) {
    o.getPA().updatePM(c.playerId, 1);
    }
    }
    }
    }
    }


    public void updatePM(int pID, int world) { // used for private chat updates
    Player p = Server.playerHandler.players[pID];
    if(p == null || p.playerName == null || p.playerName.equals("null")){
    return;
    }
    Client o = (Client)p;
    if(o == null) {
    return;
    }
    long l = Misc.playerNameToInt64(Server.playerHandler.player s[pID].playerName);

    if (p.privateChat == 0) {
    for (int i = 0; i < c.friends.length; i++) {
    if (c.friends[i] != 0) {
    if (l == c.friends[i]) {
    loadPM(l, world);
    return;
    }
    }
    }
    } else if (p.privateChat == 1) {
    for (int i = 0; i < c.friends.length; i++) {
    if (c.friends[i] != 0) {
    if (l == c.friends[i]) {
    if (o.getPA().isInPM(Misc.playerNameToInt64(c.playerN ame))) {
    loadPM(l, world);
    return;
    } else {
    loadPM(l, 0);
    return;
    }
    }
    }
    }
    } else if (p.privateChat == 2) {
    for (int i = 0; i < c.friends.length; i++) {
    if (c.friends[i] != 0) {
    if (l == c.friends[i] && c.playerRights < 2) {
    loadPM(l, 0);
    return;
    }
    }
    }
    }
    }

    public boolean isInPM(long l) {
    for (int i = 0; i < c.friends.length; i++) {
    if (c.friends[i] != 0) {
    if (l == c.friends[i]) {
    return true;
    }
    }
    }
    return false;
    }
    Thats located in PlayerAssistant.java
    Reply With Quote  
     

  2. #2  
    Registered Member
    Division's Avatar
    Join Date
    Dec 2009
    Age
    29
    Posts
    2,208
    Thanks given
    41
    Thanks received
    78
    Rep Power
    97
    bump
    Reply With Quote  
     

  3. #3  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    663
    Rep Power
    5000
    You can explain more in detail providing the code behind it maybe...
    Reply With Quote  
     

  4. #4  
    Registered Member
    Division's Avatar
    Join Date
    Dec 2009
    Age
    29
    Posts
    2,208
    Thanks given
    41
    Thanks received
    78
    Rep Power
    97
    okay let me edit it
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Jan 2009
    Age
    31
    Posts
    2,661
    Thanks given
    66
    Thanks received
    207
    Rep Power
    0
    Post Code?? its pointless to ask for help if you dont supply anything to work with.
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Jan 2010
    Age
    31
    Posts
    397
    Thanks given
    61
    Thanks received
    32
    Rep Power
    92
    Yeah Private messaging was glitched since the first project-insanity. He tried to fix it but he couldn't.

    He made it so players can at-least see the staff messages.
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Dec 2009
    Posts
    833
    Thanks given
    8
    Thanks received
    8
    Rep Power
    0
    wtf i just tried this nd the glitch works!!

    what the hell how do i fix?
    Reply With Quote  
     

  8. #8  
    Registered Member
    Division's Avatar
    Join Date
    Dec 2009
    Age
    29
    Posts
    2,208
    Thanks given
    41
    Thanks received
    78
    Rep Power
    97
    We need it really badly
    Reply With Quote  
     

  9. #9  
    Registered Member
    Division's Avatar
    Join Date
    Dec 2009
    Age
    29
    Posts
    2,208
    Thanks given
    41
    Thanks received
    78
    Rep Power
    97
    bump!
    Reply With Quote  
     

  10. #10  
    Member

    Join Date
    Nov 2008
    Age
    27
    Posts
    4,859
    Thanks given
    774
    Thanks received
    341
    Rep Power
    0
    why not use normal emu?
    Reply With Quote  
     

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

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