29.01.2016, 17:00
Prueba asн:
Te lo hice como ejemplo, ya te toca poner a ti lo demбs y ajusta los valores de los strings.
pawn Код:
COMMAND:stats(playerid,params[])
{
new idplayer,string[500],st[500];;
new ligatxt[70];
switch(Player[playerid][Liga])
{
case 0: ligatxt = "Ninguna";
case 1: ligatxt = "Liga de Bronce";
case 2: ligatxt = "Liga de Plata";
case 3: ligatxt = "Liga de Oro";
case 4: ligatxt = "Liga de Cristal";
case 5: ligatxt = "Liga de Maestros";
case 6: ligatxt = "Liga de Campeones";
case 7: ligatxt = "Liga de Titanes";
case 8: ligatxt = "Liga de Leyendas";
}
format(st,sizeof(st),"Liga: %s | Asesinatos: %d | FPS: %d",
ligatxt, Player[playerid][Kills],GetPlayerFPS(playerid);
strcat(string,st,sizeof(string));
ShowPlayerDialog(playerid,DIALOGO_STATS,DIALOG_STYLE_MSGBOX,"Tus stats",string,"Aceptar","");
return 1;
}