(2021-02-23, 10:23 PM)Radical Wrote:PHP Code:new objectId = CreateObject(19353, 2214.05127, -57.67043, 28.17278, 0.00000, 0.00000, 89.51998); // team 1.40
new pruebaa[300];
new Cache: result = mysql_query(MYSQL_DEFAULT_HANDLE, "SELECT * FROM `usuarios` ORDER BY `Score` DESC LIMIT 3");
new rows = cache_num_rows(), Escore, prueba[50], nameplayer[MAX_PLAYER_NAME];
if (rows)
{
prueba = "{FFFFFF}Lista 3 mejores Scores\n\n";
for (new i = 0; i < rows; i)
{
cache_get_value_name_int(i, "Score", Escore);
cache_get_value_name(i, "Nombre", nameplayer, MAX_PLAYER_NAME);
format(prueba, sizeof(prueba), "%s#%d\t%s %d Score\n", prueba, i 1, nameplayer, Escore);
}
cache_delete(result);
}
SetObjectMaterialText(objectId, prueba, 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 28, 1, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
Gracias
Programador b?sico