Discussion in 'Releases' started by DreTaX, Jul 30, 2014.

Approved HomeSystem 2.6.5

HomeSystem with Anti Glitches

  1. Assassin
    Online

    Assassin Plugin Developer Plugin Developer

    Joined:
    Apr 9, 2017
    Messages:
    187
    Likes Received:
    17
    Reporting an Important Bug:


    Code (Python):
    elif cmd == "delfriendh":
                if len(args) == 0:
                    Player.MessageFrom(self.homesystemname, "Usage: /delfriendh playername")
                    return
                name = str(args[0])
                ini = self.Wl()
                players = ini.EnumSection(id)
                if len(players) == 0:
                    Player.MessageFrom(self.homesystemname, "You have never added anyone...")
                    return
                name = name.lower()
                for playerid in players:
                    nameof = ini.GetSetting(id, playerid)
                    lowered = nameof.lower()
                    if lowered == name:
                        ini.DeleteSetting(id, playerid)
                        ini.Save()
                        Player.MessageFrom(self.homesystemname, "Player Removed from Whitelist")
                        return
    Player.MessageFrom(self.homesystemname, "Couldn't find that player!")
    this part of resource has problem & problem is if you /addfriendh Assassin
    my name will save in ini file as Assassin
    but if i change my name to BlaBla... you can't delfriendh me!!!
    @DreTaX plz tell me what i must do to fix it if you don't have enough time for it
     
    #201
  2. Jakkee
    Offline

    Jakkee Plugin Developer Plugin Developer Contributor

    Joined:
    Jul 28, 2014
    Messages:
    1,444
    Likes Received:
    135
    /delfriendh Assassin?
    Shouldn’t matter if they changed their name
     
    #202
    • Agree Agree x 1
  3. Assassin
    Online

    Assassin Plugin Developer Plugin Developer

    Joined:
    Apr 9, 2017
    Messages:
    187
    Likes Received:
    17
    it doesn't work!
    all of the problem starts when player clan tag or name get change!
     
    #203
  4. ice cold
    Offline

    ice cold Plugin Developer Plugin Developer

    Joined:
    Oct 24, 2016
    Messages:
    559
    Likes Received:
    52
    Clan tags and capital letters are sensetive
     
    #204
    • Informative Informative x 1
  5. Assassin
    Online

    Assassin Plugin Developer Plugin Developer

    Joined:
    Apr 9, 2017
    Messages:
    187
    Likes Received:
    17
    i know all these shits, please test it one time in your server and you will see the bug i said,

    maybe you need a video ?
     
    #205
  6. ice cold
    Offline

    ice cold Plugin Developer Plugin Developer

    Joined:
    Oct 24, 2016
    Messages:
    559
    Likes Received:
    52
    it doesnt matter if someone changes his name becaus it gets the steamid of the selected user and checks if the id is in the ini or not
     
    #206
  7. Assassin
    Online

    Assassin Plugin Developer Plugin Developer

    Joined:
    Apr 9, 2017
    Messages:
    187
    Likes Received:
    17
    well, the point is here

    i think you can believe it so i will upload a simple video of it
     
    #207
  8. Assassin
    Online

    Assassin Plugin Developer Plugin Developer

    Joined:
    Apr 9, 2017
    Messages:
    187
    Likes Received:
    17
    #208
  9. ice cold
    Offline

    ice cold Plugin Developer Plugin Developer

    Joined:
    Oct 24, 2016
    Messages:
    559
    Likes Received:
    52
    get the name in the ini and copy paste it into the game
     
    #209
  10. Assassin
    Online

    Assassin Plugin Developer Plugin Developer

    Joined:
    Apr 9, 2017
    Messages:
    187
    Likes Received:
    17
    players doesn't have access to ini file!what shold they do?
    also getting the name from ini and copy paste it doesn't solve this problem
     
    #210
  11. ice cold
    Offline

    ice cold Plugin Developer Plugin Developer

    Joined:
    Oct 24, 2016
    Messages:
    559
    Likes Received:
    52
    downgrade to a older version of the plugin if the error still occurs then idk
     
    #211
    • Disagree Disagree x 1
  12. Assassin
    Online

    Assassin Plugin Developer Plugin Developer

    Joined:
    Apr 9, 2017
    Messages:
    187
    Likes Received:
    17
    WTF i am here to find the solution
    solution is not going back
     
    #212
  13. ice cold
    Offline

    ice cold Plugin Developer Plugin Developer

    Joined:
    Oct 24, 2016
    Messages:
    559
    Likes Received:
    52
    well if you check the same part of code in 2 diffrent versions you can see whats wrong
     
    #213
  14. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,838
    Likes Received:
    610
    I will take a look later
     
    #214
    • Friendly Friendly x 1

Share This Page