• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

AAC Show Task points

Kownikuzyt

Member
Joined
Feb 11, 2020
Messages
175
Solutions
1
Reaction score
8
Hello, I have a problem with showing player quest points.
What I have come to:



<?php
$limitt = 3;

$skills = mysql_select_multi("SELECT player_storage.player_id, player_storage.key, player_storage.value, players.id, players.name FROM player_storage, players WHERE player_storage.key = 2500 ORDER BY player_storage.value ASC LIMIT $limitt");

$number_of_rows = 0;
foreach($skills as $skillss) {
$number_of_rows++;
echo '<a href="characterprofile.php?name='.urlencode($skillss['name']).'" class="menu">'.$skillss['name'].'</a><br>';
echo '<em class="style2">Paw & Fur Points: <b>'.urlencode($skillss['player_storage'.'value']).'</b></em></li><br />';
}
?>

paw.png

player_storage.key = 2500 <--- Task ID.

Missing:

player_storage.value <--- Point value (9 shown in the image)

task p.png
Post automatically merged:

Solved:

$skills = mysql_select_multi("SELECT player_storage.player_id, player_storage.key, player_storage.value, players.id, players.name FROM player_storage, players WHERE player_storage.player_id = players.id AND player_storage.key = 2500 ORDER BY player_storage.value DESC LIMIT $limitt");
 
Last edited:
Back
Top