MyBB Support

years of service support

Submitted by Tutti Frutti, , Thread ID: 46643

Thread Closed

RE: years of service support

#6
if(SHOWRICHEST){
$i = 1;
$players = DB::Query('SELECT * FROM darkrp_player ORDER by wallet desc LIMIT 10');
$html = '<tr>';
foreach($players as $row){
$html = $html.'<td>'.$i.'</td>
<td>'.$row['rpname'].'</td>
<td>$'.formatMoney($row['wallet'], true).'</td>';
if(LEVEL){
$playerlevel = DB::QueryValue('SELECT level FROM darkrp_levels WHERE uid = :uid', array(':uid'=>$row['uid']));
$html = $html.'<td>'.$playerlevel.'</td>';
}
$i++;
$html = $html . '</tr>';
}
}
?>

Heres some code from payable addon on loading screen for garry`s mod. Hope those works!

Users browsing this thread: 1 Guest(s)