SQLite TOP players
#6

Quote:
Originally Posted by Sreyas
Посмотреть сообщение
Thats because you order it by descending order.
(??) I'm rank 35 on the DB, (I've created these ranks and these things with some users on my PC) so I should be the number 1 (1. _Ner0x[JMPR] - Rank: 35)

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
I see, Gammix's trick seems to skip the first row so change the loop to:
PHP код:
for (new arows db_num_rows(result); rowsa++) 

    
db_get_field(result0player_namesizeof player_name); 
    
format(rank_infosizeof(rank_info), "%d. %s - Rank: %d"1player_namedb_get_field_int(result1)); 
    
// client message 
    
db_next_row(result);

Now it's not working lol:

Reply


Messages In This Thread
SQLite TOP players - by Ner0x96 - 20.10.2016, 13:09
Re: SQLite TOP players - by Konstantinos - 20.10.2016, 13:21
Re: SQLite TOP players - by Ner0x96 - 20.10.2016, 13:34
Re: SQLite TOP players - by SyS - 20.10.2016, 13:36
Re: SQLite TOP players - by Konstantinos - 20.10.2016, 13:38
Re: SQLite TOP players - by Ner0x96 - 20.10.2016, 13:38
Re: SQLite TOP players - by Konstantinos - 20.10.2016, 13:42
Re: SQLite TOP players - by SyS - 20.10.2016, 13:43
Re: SQLite TOP players - by Ner0x96 - 20.10.2016, 13:48
Re: SQLite TOP players - by Ner0x96 - 21.10.2016, 13:47

Forum Jump:


Users browsing this thread: 1 Guest(s)