• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Top en 2d
#1
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?



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

  Reply


Messages In This Thread
Top en 2d - by Hitler - 2021-02-23, 02:09 AM
RE: Top en 2d - by destiezk - 2021-02-23, 10:17 AM
RE: Top en 2d - by Hitler - 2021-02-23, 02:32 PM
RE: Top en 2d - by Radical - 2021-02-23, 04:20 PM
RE: Top en 2d - by Hitler - 2021-02-23, 06:36 PM
RE: Top en 2d - by Radical - 2021-02-23, 10:23 PM
RE: Top en 2d - by Hitler - 2021-02-24, 12:19 AM