Player Ranks

Player ranks and stats database

Total Downloads: 4,903 - First Release: Mar 4, 2017 - Last Update: May 29, 2018

5/5, 19 likes
  1. Hello @Steenamaroo ,

    Your OnPlayerInit must be the following code =>
    Code:
            void OnPlayerInit(BasePlayer player)
            {
                topsOpen = false;
                int maxNum = 0;
                if (data.PlayerRankData.Count != 0)
                {
                    maxNum = data.PlayerRankData.Max(recent =>
                    {
                        if (recent.Value != null) return recent.Value.Recent;
                        return 0;
                    });
                }
    
    With your actual method you are trying to get max recent value without checking if your data is not empty and that throw an error.
     
  2. For some reason It's not creating a table. phpMyAdmin says "No tables found in database", even though console says it saved the database.
    I have the database named playerranks, with user ranks, and the user ranks has all privileges for database specific under database playerranks.
     
  3. Oops. Thanks for that.
    Updating now.
     
  4. Steenamaroo updated Player Ranks with a new update entry:

    1.1.9

     
  5. The update fixed my problem too. It now writes the table.
     
  6. Hoped that would be the case. Thanks for letting me know. :)
     
  7. For some reason the Economics and other categories you added are not showing in the Config or the game its self but they show in the data file for player ranks, my question is how do i enable the economics to be shown on the /pr tops window? P.S. also i do not use mySQL.
     
  8. Those options are currently MySQL only.
    I might add Economics and Playtime to /pr tops soon.
     
  9. ahhh i see thank you for clarifying that for me =)
     
  10. MAssive errors for me. Since only just realising no one could use the auto Bind key when they use /pr tops the close button doesnt work on the GUI. Something ive experienced with other GUI plug ins before. A right pain. Had to unload and reboot. :( I'll hang off this plug in till fixed. Thanks guys.

    Little further info. When I unloaded the plug in the GUI remained. I had to relog the server to clear it. ITs always GUI related plug ins I have a issue with.
     
    Last edited by a moderator: Jun 1, 2017
  11. Hi Rickne,

    Welcome to a very small exclusive group. There are three of you now.
    Best I can figure, this is a conflict with some plugin. The other two guys sent me their plugin list for reference, but neither was prepared to unload un chunks to trace the issue.

    Unfortunately I've never had the stuck GUI issue so I can't do it.

    Would you please PM me your full plugin list (type 'plugins' in RCON)?
    I should be able to send you back a short list of possible conflict candidates.

    Thanks.

    FYI - Typing 'ToggleTops' in f1 console should clear a stuck GUI.
     

  12. should but didnt lol. Ill send that list shortly ;)
     
  13. Thank you. Much appreciated.
     
  14. How can I reset scores/stats? /pr wipe is not working.

    Its okay, thank you
     
  15. You got it sorted?
     
  16. Yeah all good now thank you
     
  17. If anyone else is still having the stuck GUI issue, PM me for a new version to test.
     
  18. does this not include admin to the stats announce?
     
  19. What's "Top SDR"?
     
  20. Admin stats are enabled and disabled by config.

    SDR = Suicide to Death Ratio