10.11.2013, 06:16
As the title say. Can you please help us make a /top10 command which get the player Kills or Score. For Example it would be look like this
This is what my mysql
I have posted this because I haven't found any /top player that loads using this new one. This thread will also help other forum members if they have similar things about /top player
Код HTML:
Server 10 Top //This is the dialog title 1. kbalor: 32 2. Killua: 29 3. Obeshi: 27 4. Ippo: 25 5. Naruto: 23 6. Gko: 20 7. and so on up to 10 Close //dialog msgbox close button
Код HTML:
#if USE_MYSQL == true #define _THREAD_LOAD_PLAYER (0)
Код HTML:
stock LoadPlayer(playerid) { #if USE_MYSQL == true new query[634]; format(query,sizeof(query),"SELECT `XPos`,`YPos`,`ZPos`,`AdminLevel`,`VIPLevel`,`WantedLevel`,`Kills`,`Deaths`,`Money`,`Score`,`Health`,`Armour`,`Hours`,`Minutes`,`Seconds`,`KickCount`,`LastSkin`,`SpawnCount`,`ReportCount`,`RegDate` FROM `"#MYSQL_TABLE"` WHERE `PlayerName` = '%s'", GetName(playerid)); if(mysql_ping(gSQL)) { mysql_query(query, _THREAD_LOAD_PLAYER, playerid, gSQL); }