Hello @Steenamaroo ,
Your OnPlayerInit must be the following code =>
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.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; }); }

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
-
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. -
Updating now. -
Steenamaroo updated Player Ranks with a new update entry:
1.1.9
-
-
Hoped that would be the case. Thanks for letting me know.
-
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.
-
Those options are currently MySQL only.
I might add Economics and Playtime to /pr tops soon. -
ahhh i see thank you for clarifying that for me =)
-
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 -
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. -
should but didnt lol. Ill send that list shortly -
Thank you. Much appreciated.
-
How can I reset scores/stats? /pr wipe is not working.
Its okay, thank you -
You got it sorted?
-
Yeah all good now thank you
-
If anyone else is still having the stuck GUI issue, PM me for a new version to test.
-
does this not include admin to the stats announce?
-
What's "Top SDR"?
-
Admin stats are enabled and disabled by config.
SDR = Suicide to Death Ratio