the answer is exactly on the no.6 of the pinned topic
@raksone
dispbottom "============== My Rank ==============", 0xffe066;
query_sql "SELECT `points`, 1+(SELECT COUNT(1) FROM `mvp_ranking` t1 WHERE t1.`points` > t2.`points`) FROM `mvp_ranking` t2 WHERE `char_id` = "+ getcharid(0), .@points, .@rank;
dispbottom "My MVP Points "+ .@points + ".", 0x6666ff;
dispbottom "My Rank is: " + .@rank + ".", 0x6666ff;
dispbottom "==========================================", 0xffe066;
end;