2021-02-23, 06:36 PM
help
Code:
new objectId = CreateObject(19353,2214.05127,-57.67043, 28.17278,0.00000,0.00000,89.51998); // team 1.40
new pruebaa[300];
format(pruebaa, sizeof(pruebaa), "SELECT * FROM `usuarios` ORDER BY `Score` DESC LIMIT 3");
new rows = cache_num_rows(),Escore,prueba[50],nameplayer[MAX_PLAYER_NAME];
if(rows > 0)
{
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,nameplayer,Escore);
}
}
? ? SetObjectMaterialText(objectId, prueba, 0, OBJECT_MATERIAL_SIZE_256x128,"Arial", 28, 1, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
Programador b?sico