View Full Version : [Request]Ladder/Player Ranking
Jescozen
15.07.2009, 10:45
like title says really need Player ranking script and maybe anyone still has _untitled client_launcher, thanks in advanced for providing it if possible, appreciate it a lot, luv u all in PP especially the Sexeh Truffe :p
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-15-2009, 10:45 AM. Открыть источник (https://web.archive.org/web/20100324120842id_/http://www.postpacific.com:80/archive/index.php/t-825.html).
Renobizarro
15.07.2009, 10:58
if u get somebody that knows php he will do it... i don't know php... but i can give u the sql part...
top lvl
select top 10 lev,char_name from user_data where builder=0 and account_id!=-1 order by exp desc
top pk
select top 10 duel,char_name from user_data where builder=0 and account_id!=-1 order by duel desc
i think u got it...
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-15-2009, 10:58 AM. Открыть источник (https://web.archive.org/web/20100324120842id_/http://www.postpacific.com:80/archive/index.php/t-825.html).
Jescozen
15.07.2009, 11:20
awesome thanks, should I say I luv u? ;)
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-15-2009, 11:20 AM. Открыть источник (https://web.archive.org/web/20100324120842id_/http://www.postpacific.com:80/archive/index.php/t-825.html).
Jescozen
15.07.2009, 11:30
if u get somebody that knows php he will do it... i don't know php... but i can give u the sql part...
top lvl
select top 10 lev,char_name from user_data where builder=0 and account_id!=-1 order by exp desc
top pk
select top 10 duel,char_name from user_data where builder=0 and account_id!=-1 order by duel desc
i think u got it...
ok give me the sql part, I think i still remember how to make the table in PHP, thanks bro
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-15-2009, 11:30 AM. Открыть источник (https://web.archive.org/web/20100324120842id_/http://www.postpacific.com:80/archive/index.php/t-825.html).
if u get somebody that knows php he will do it... i don't know php... but i can give u the sql part...
top lvl
select top 10 lev,char_name from user_data where builder=0 and account_id!=-1 order by exp desc
top pk
select top 10 duel,char_name from user_data where builder=0 and account_id!=-1 order by duel desc
i think u got it...
I did not test it since i'm not deving, but it should work
//Connect to your mssql server
//Do your query : $res
echo '<table>';
echo '<tr><th>Rank</th><th>Name</th><th>Pk Count</th></tr>';
while ( $row = mssql_fetch_array ( $res ) ) {
$i++;
echo '<tr><td>'.$i.'</td><td>'.$row["char_name"].'</td><td>'.$row["duel"].'</td></tr>';
}
echo '</table>';
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-15-2009, 02:22 PM. Открыть источник (https://web.archive.org/web/20100324120842id_/http://www.postpacific.com:80/archive/index.php/t-825.html).