Top x player - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Top x player (
/showthread.php?tid=510122)
Top x player -
Freedom. - 29.04.2014
solved /
Re: Top x player -
Vince - 29.04.2014
Field index refers to the position of the field in the result, not the position of the field in the base table. You only have two fields; username (0) and score (1).
Re: Top x player -
Konstantinos - 29.04.2014
Since you select 2 specific fields, the fields will be 0 for username and 1 for score. I assume GetWholeRows is used as loop (if not - it should).
EDIT: Late.
Re: Top x player -
Freedom. - 29.04.2014
Thanks for comment, I solved problem.
Re: Top x player -
gtakillerIV - 29.04.2014
Use ASC(ascending) instead of DESC(descending) order.
If you wanna learn more:
https://dev.mysql.com/doc/refman/5.0...ting-rows.html