Record Ranking Highest Level

this was a good try on this. but you can do even simple.
just add a __time64 on chardata , when levelup , assign a current date for it.
and on existing charsave and charload , load the chaleveltime. will be more easier and simple.

and for ranking sql query. you can use order by Chalevel desc, chaleveltime asc for sort by the level , and date.
 
Back