SA-MP Forums Archive
[Duda] Problema con ShowPlayerDialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [Duda] Problema con ShowPlayerDialog (/showthread.php?tid=512682)



[Duda] Problema con ShowPlayerDialog - lanci112 - 12.05.2014

Hola!, tengo un pequeсo problema, cuando uso este comando, solo me muestra la linea de Sprays, las otras 3 no se muestran en el dialogo, como podrнa solucionar esto?

Код:
CMD:Inventario(playerid, params[]) 
{
	if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_GRAD2, "No estбs conectado.");
	{
		new string[280];
		format(string, sizeof(string), "\n{FFFFFF}Drogas:\t(%d)", Info[playerid][pDrogas]);
		format(string, sizeof(string), "\n{FFFFFF}Medicinas:\t(%d)", Info[playerid][pMedicinas]);
		format(string, sizeof(string), "\n{FFFFFF}Herramientas:\t(%d)", Info[playerid][pHerramientas]);
		format(string, sizeof(string), "\n{FFFFFF}Sprays:\t(%d)", Info[playerid][pSprays]);
		ShowPlayerDialog(playerid, DIALOGO_HABILIDADES, DIALOG_STYLE_MSGBOX, "{FFFFFF}INVENTARIO", string, "Salir", ">>");
	}
 	return 1;
}



Respuesta: [Duda] Problema con ShowPlayerDialog - MugiwaraNoLuffy - 12.05.2014

pawn Код:
CMD:Inventario(playerid, params[])
{
    if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_GRAD2, "No estбs conectado.");
    {
        new string[280];
        format(string, sizeof(string), "\n{FFFFFF}Drogas:\t(%d)", Info[playerid][pDrogas]);
        format(string, sizeof(string), "%s\n{FFFFFF}Medicinas:\t(%d)", string, Info[playerid][pMedicinas]);
        format(string, sizeof(string), "%s\n{FFFFFF}Herramientas:\t(%d)", string, Info[playerid][pHerramientas]);
        format(string, sizeof(string), "%s\n{FFFFFF}Sprays:\t(%d)", string, Info[playerid][pSprays]);
        ShowPlayerDialog(playerid, DIALOGO_HABILIDADES, DIALOG_STYLE_MSGBOX, "{FFFFFF}INVENTARIO", string, "Salir", ">>");
    }
    return 1;
}



Respuesta: [Duda] Problema con ShowPlayerDialog - lanci112 - 12.05.2014

Muchнsimas gracias, me funciono!