Ranks Script Help

09/18/2016 23:43 shaiyapvpserver#1
Hello friends
Is there a ready script ranks as the picture

How can I add the name of the union or association where it says

Thank you

[Only registered and activated users can see links. Click Here To Register...]
09/19/2016 17:32 [ADM]_Dephisio#2
In this database: PS_GameData
You have to looking for dbo.Guild if i'm not wrong
Tell me if it is the answer you expected :)
09/19/2016 19:18 shaiyapvpserver#3
$faction=0;
if((isset($_GET['class'])) && (!empty($_GET['class']))) {
// si la classe est choisie
$job=$_GET['class'];
if($job == 6) {
$job=0;
echo "<center><table border=\"1\" width=\"620\">";
echo "<tr><th colspan=\"4\"><center>Işık İttifakı - Cengaver İnfaz Listesi</th></tr>";
echo "<tr><th><center>Sıra</center></th><th><center>İsmi </center></th><th><center>Seviye</center></th><th><center>İnfaz</center></th><th><center>GUILD</center></th></tr>";
$selecteverything=$conn->prepare('SELECT TOP 30 c.CharName, c.K1, c.Del, c.UserUID, c.Level, d.Status, e.Country FROM PS_GameData.dbo.Chars AS c
JOIN PS_UserData.dbo.Users_Master AS d ON c.UserUID=d.UserUID
JOIN PS_GameData.dbo.UserMaxGrow AS e ON c.UserUID=e.UserUID
WHERE c.Del=0 AND d.Status=0 AND e.Country=:country AND c.Job=:job ORDER BY c.K1 DESC, c.K2 ASC, c.CharName ASC');
if($selecteverything == false) {
echo "Error in preparing the select query.<br />";
die(FormatErrors($conn->errorInfo()));
} else {
$selecteverything->bindParam(':country', $faction, PDO::PARAM_INT);
$selecteverything->bindParam(':job', $job, PDO::PARAM_INT);
if($selecteverything->execute() == false) {
echo "Error while executing query to select the ranked chars.<br />";
die(FormatErrors($selecteverything->errorInfo()));
} else {
$begin=1;
for ($i=1; $char=$selecteverything->fetch(PDO::FETCH_ASSOC); $i++) {
if($i >= $begin) {
echo "<tr><td style=\"color:white\" bgcolor=\"black\"><center>".$i."</center></td><td style=\"color:white\" bgcolor=\"black\"><center>".$char['CharName']."</center></td><td style=\"color:white\" bgcolor=\"black\"><center>".$char['Level']."</center></td><td style=\"color:white\" bgcolor=\"black\"><center>".$char['K1']."</center></td><td style=\"color:white\" bgcolor=\"black\">Guild Name</center></td></tr>";
}
}
}
}
}




where code will be written
Thank you
09/19/2016 20:31 [ADM]_Dephisio#4
I don't understand what you're looking for,explain precisely pls
09/20/2016 01:37 [DEV]Arkham#5
Quote:
Originally Posted by shaiyapvpserver View Post




where code will be written
Thank you
Can you Send all scripts ?
Or try to use it

enter it on to $faction=0; and replace it
PHP Code:
echo "<tr><td style=\"color:white\" bgcolor=\"black\"><center>".$i."</center></td><td style=\"color:white\" bgcolor=\"black\"><center>".$char['CharName']."</center></td><td style=\"color:white\" bgcolor=\"black\"><center>".$char['Level']."</center></td><td style=\"color:white\" bgcolor=\"black\"><center>".$char['K1']."</center></td><td style=\"color:white\" bgcolor=\"black\">Guild Name</center></td></tr>"
TO:

PHP Code:
echo "<tr><td style=\"color:white\" bgcolor=\"black\"><center>".$i."</center></td><td style=\"color:white\" bgcolor=\"black\"><center>".$char['CharName']."</center></td><td style=\"color:white\" bgcolor=\"black\"><center>".$char['Level']."</center></td><td style=\"color:white\" bgcolor=\"black\"><center>".$char['K1']."</center></td><td style=\"color:white\" bgcolor=\"black\">".$guild."</center></td></tr>"
09/20/2016 14:23 shaiyapvpserver#6


All codes here i cant add guild thank u for helping
09/20/2016 20:50 [DEV]Arkham#7
Quote:
Originally Posted by shaiyapvpserver View Post


All codes here i cant add guild thank u for helping
Done!


Please test it before to use on your server ^_^