[Duda] Problema con ShowPlayerDialog
#1

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;
}
Reply
#2

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;
}
Reply
#3

Muchнsimas gracias, me funciono!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)