22.07.2018, 00:59
Quando clico no primeiro item, ele nгo mostra o segundo menu do dialog, por que?!
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/lojaapple", true) == 0)
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_TABLIST_HEADERS, "Apple", "Produtos\tServiзo\nCelulares\tApple\nComputadores\tApple\nNotebooks\tApple", "Selecionar", "Fechar");
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 0)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_TABLIST_HEADERS, "Apple", "Produtos\tPreзo\niPhone X\t$6999\niPhone 8 Plus\t$4599\niPhone 8\t$3999\niPhone 7 Plus\t$3799\niPhone 7\t$3199", "Selecionar", "Fechar");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_TABLIST_HEADERS, "Apple", "Produtos\tPreзo\niMac\t$9799\niMac Pro\t$37999", "Selecionar", "Fechar");
}
}
}
return 1;
}


