Is there a way to make a /top cmd?
#1

Well all i want is with pInfo[playerid][Respect], to make this command to view like 10 most respected players. But i've got no idea, i only know that i need to play with https://sampwiki.blast.hk/wiki/Control_Structures right? Any more ideas?

Or lets make it more easier, how do you make a command but instead of viewing most respected players, you view best scored player?
Reply
#2

which of the DB u're using?
for MySQL it's like mysql_query("SELECT `Name`, `Respect` FROM `Users` ORDER BY `Respect` DESC LIMIT 10"); (it's just an example)
Reply
#3

Yeah it's mysql , thanks someone already sorted this out, thanks for your time !
Reply
#4

aw, okay, you're welcome
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)