Espa?ol: ya tengo una funci?n que muestra a los 5 mejores top score, pero como lo hago para hacerlo en un texto 2d?
English: I already have a function that shows the top 5 scores, but how do I do it in a 2d text?
como as?:? https://imgur.com/SO3F1Fj
English: I already have a function that shows the top 5 scores, but how do I do it in a 2d text?
Code:
CMD:top(playerid)
{
mysql_pquery(con, "SELECT `Nombre`, `Score` FROM `usuarios` WHERE `Score` > 0 ORDER BY `Score` DESC LIMIT 5", "MejoresScore", "d", playerid);
return 1;
}
funcion MejoresScore(playerid)
{
new rows = cache_num_rows(),string[300],Escore,nameplayer[MAX_PLAYER_NAME];
if(rows > 0)
{
string = "{FFFFFF}Lista 5?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(string, sizeof(string), "%s#%d\t%s? %d Score\n",string,i,nameplayer,Escore);
}
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Top Scores", string, "Cerrar", "");
}
return 1;
}
como as?:? https://imgur.com/SO3F1Fj
Programador b?sico