• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

EN Get the key with the highest value

DrWarpMan

Well-Known Member
Contributor
Insider
I have script, that writes something in database, that doesn't matter.

Let's take it like this:
- I have 10 keys with name "testUID", where UID is the UID of some players..
- I have different values for each key, for ex. the first key has value of 5, the second 10, and so on..

How can I get the key with the highest value?

For ex. if tenth key has a value of 100 (the highest from all the keys), how can I get they "keyname" of the key that has the highest value (in this situation it's 100).

Thanks!
 
Top