11.03.2013, 20:53
Como seria o seguinte script em pawn?
PHP код:
<?php
$conn = mysql_connect('localhost', 'root', '');
mysql_select_db('samp');
$query = mysql_query("SELECT * FROM `usuarios` ORDER BY Matou DESC LIMIT 10");
echo "<table border = 1 style='font-size : 16px;width:100%;'>";
echo "<tr bgcolor='B0E0E6'>
<th scope='col'>Nome </th>
<th scope='col'>Matou  </th> <th scope='col'>Morreu  </th>
<th scope='col'>Eagle  </th> <th scope='col'>Shotgun  </th>
<th scope='col'>M4  </th> <th scope='col'>Sniper  </th>
<th scope='col'>Remedios  </th> <th scope='col'>Comida  </th>
<th scope='col'>Vida  </th>
<th scope='col'>Fome  </th> <th scope='col'>Sono  </th>
</tr>";
while($result = mysql_fetch_array($query)) {
echo "<tr bgcolor='CFCFCF'>
<b><td bgcolor='FFFFFF'>{$result['Nome']} </td>
<td>{$result['Matou']} </td>
<td bgcolor='FFFFFF'>{$result['Morreu']} </td>
<td>{$result['Eagle']} </td>
<td bgcolor='FFFFFF'>{$result['Shot']} </td>
<td>{$result['M4']} </td>
<td bgcolor='FFFFFF'>{$result['Sniper']} </td>
<td>{$result['Remedios']} </td>
<td bgcolor='FFFFFF'>{$result['Comida']} </td>
<td>{$result['Vida']} </td>
<td bgcolor='FFFFFF'>{$result['Fome']} </td>
<td>{$result['Sono']} </td></b>
</tr>";
}
echo "</table>";
?>