Register for your free account! | Forgot your password?

You last visited: Today at 05:35

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Ranking Script!

Discussion on Ranking Script! within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old 12/02/2009, 13:49   #31
 
DraaaKe's Avatar
 
elite*gold: 99
Join Date: May 2009
Posts: 1,020
Received Thanks: 400
Also ich habe das Problem mal anders gelöst. Also in dem script werden die ersten x Spieler nicht angezeigt. Das heist, du machst die GMs und GAs auf level100 somit sind die immer an erster stelle dann suchst du in meinem script nach LIMIT 4,50; und die 4 steht für: es wird erst ab der 4ten postition die ränge angezeigt aber es steht dann bei dem, der eigentlich 5ter ist 1ter. und die 2te Zahl in meinem Fall 50 das ist die Anzahl wieviele ränge angezeigt werden sollen. also bei mir werden die 4 GA und GMs weggelassen und nur 50 spieler werden angezeigt. Hier das script:
Code:
<?php
   session_start ();
         include ("rank.html");  
include ("config_player.php");


$sql = "SELECT  
    *
    FROM 
  player 
  ORDER BY level DESC LIMIT 4,50";
      $i = "0" ;
   $ergebnis = mysql_query($sql);
 $ergebnis = mysql_query($sql);
while($row = mysql_fetch_object($ergebnis))
   {
   $i = $i + 1 ;
   echo "
   <center><table border=0>
  <tr>
    <th width=\"200\"><font color=black>$i</font></th>
    <th width=\"200\"><font color=black>$row->name</font></th>
    <th width=\"200\"><font color=black>$row->exp</font></th>
    <th width=\"200\"><font color=black>$row->level</font></th>
  </tr>
</table></center>";  
   }
echo "</td>
</tr>
</table>
</td>
</tr>
</table>
<tr>
</td>
</tr>
</table>
</body>
</html>" ;
?>
DraaaKe is offline  
Old 12/02/2009, 14:04   #32
 
DraaaKe's Avatar
 
elite*gold: 99
Join Date: May 2009
Posts: 1,020
Received Thanks: 400
sorry downi aber reich wird immer noch nich angezeigt^^
DraaaKe is offline  
Old 12/02/2009, 14:47   #33


 
Menan's Avatar
 
elite*gold: 0
The Black Market: 169/0/0
Join Date: Sep 2008
Posts: 9,484
Received Thanks: 3,109
Das mit dem Rang ist nicht möglich!

1. Steht "empire" nicht in Player sondern in Account.
2. Ist da überall "0" eingetragen"

MfG menan
Menan is offline  
Old 12/02/2009, 14:48   #34
 
DraaaKe's Avatar
 
elite*gold: 99
Join Date: May 2009
Posts: 1,020
Received Thanks: 400
Das meine ich ja, und nein es ist 100% möglich da es viele Server haben
DraaaKe is offline  
Old 12/02/2009, 14:50   #35
 
Realmadrid08rk's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 477
Received Thanks: 200
Ja, dass muss gehen, ich kenne viele Server die das haben.
Realmadrid08rk is offline  
Old 12/02/2009, 14:53   #36


 
Menan's Avatar
 
elite*gold: 0
The Black Market: 169/0/0
Join Date: Sep 2008
Posts: 9,484
Received Thanks: 3,109
In der DB steht aber ÜBERALL 0
Menan is offline  
Old 12/02/2009, 14:54   #37
 
Realmadrid08rk's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 477
Received Thanks: 200
Hmm dann weis ich auch nicht mehr weiter.
Realmadrid08rk is offline  
Old 12/02/2009, 15:03   #38
 
DraaaKe's Avatar
 
elite*gold: 99
Join Date: May 2009
Posts: 1,020
Received Thanks: 400
ehm unter player > playerindex > empire steht ja eh alles^^ in meinem fall überall 2
DraaaKe is offline  
Old 01/24/2010, 13:01   #39
 
eXidal's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 1,525
Received Thanks: 383
PHP Code:
<?php
   session_start 
();
         include (
"rank.html");  
include (
"config_player.php");


$sql "SELECT  
    *
    FROM 
  player 
  ORDER BY level DESC"
;
      
$i "0" ;
   
$ergebnis mysql_query($sql);
 
$ergebnis mysql_query($sql);
while(
$row mysql_fetch_object($ergebnis))
   {
   
$i $i ;
   echo 
"
   <center><table border=0>
  <tr>
    <th width=\"200\"><font color=black>
$i</font></th>
    <th width=\"200\"><font color=black>
$row->name</font></th>
    <th width=\"200\"><font color=black>
$row->exp</font></th>
    <th width=\"200\"><font color=black>
$row->level</font></th>";
$sql2 "SELECT * from player_index WHERE id like $row->account_id";
$ergebnis2 mysql_query($sql2);
$row2 mysql_fetch_object($ergebnis2);
if(
$row2->empire == 1)
{
echo 
"
<th width=\"200\"><font color=red>Shinsoo</font></th></tr>"
;
}
elseif(
$row2->empire == 2)
{
echo 
"
<th width=\"200\"><font color=yellow>Chunjo</font></th>
}
else
{
echo "
<th width=\"200\"><font color=blue>Jinno</font></th>
}

echo "
</table></center>";  
   }
echo "
</td>
</
tr>
</
table>
</
td>
</
tr>
</
table>
<
tr>
</
td>
</
tr>
</
table>
</
body>
</
html>" ;
?>
Das rank Template müsst ihr entsprechend anpassen.
Link zu meinem Thread (mit Flaggen):
eXidal is offline  
Reply


Similar Threads Similar Threads
Ranking Script v15
06/26/2010 - Flyff Private Server - 4 Replies
Hi, Hat hier vielleicht wer ne voll funktionstüchtige Ranking script für v15.? Danke schon mal^^
GM aus dem ranking
04/19/2010 - Metin2 Private Server - 8 Replies
Hallo Wie nehme ich die gms aus der ranklist bittte um antword thx
How To Ranking?
10/17/2009 - Metin2 Private Server - 2 Replies
How To Ranking liste Who site have ranking liste?
Request: New Eudemons Ranking Script
02/17/2009 - EO PServer Hosting - 3 Replies
like the title says i need a new Script for eudemons ranking theat can support Pixie and other new eudemons
[i]I need a Ranking
02/13/2009 - CO2 Private Server - 0 Replies
hi , i need a ranking page based in Inis ;p help me.. :mofo:



All times are GMT +1. The time now is 05:36.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.