11.04.2015, 17:17
Hi everyone, i have a small question about Dialogs, i have make a dynamic Dialog and i need to know how to make the response , i mean when i click on the Duel i want to get another Dialogs with 2 choice "Join Duel\nSpectate Duel" , but idk how to get the duel id from the dialog, if anyone can help
PHP код:
if(listitem == 1)
{
new DuelList[750];
for (new i; i < MAX_DUELS; i++)
{
if(Duel[i][DuelExiste])
{
format(DuelList, sizeof(DuelList), "Createur: {00FF00}%s{FFFFFF}, Nom : {00FF00}%s{FFFFFF}\n", Duel[i][DuelLeader], Duel[i][DuelName]);
}
}
ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_LIST, "Choisissez un Duel:", DuelList, "Ok", "Annuler");
}