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!
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!