13.01.2016, 14:39
I have a problem with this help dialog, when i select the first item it close, and when i select the second it shows the 2nd dialog...
OnDialogResponse
And the help command
OnDialogResponse
PHP код:
case DIALOG_HELP:
{
if(response)
{
if(listitem == 1)
{
ShowPlayerDialog(playerid, DIALOG_INFO, DIALOG_STYLE_MSGBOX, "Help - INFO", "/help - Iti afiseaza meniul de help\n/stats (playerid) - Iti afiseaza stats-urile tale sau ale unui alt jucator\n ", "Inchide", "");
}
if(listitem == 2)
{
ShowPlayerDialog(playerid, DIALOG_RPG, DIALOG_STYLE_MSGBOX, "Help - RPG", "/licenta - Ia-ti licenta de condus\n/payday - Iti afiseaza cat mai ai pana la PayDay-ul urmator\n/buylevel - Faci level-ul atunci cand ai destule RP-uri\n ", "Inchide", "");
}
}
}
PHP код:
CMD:help(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_LIST, "Help", "1. Info \n2. RPG\n", "Select", "Inchide");
return 1;
}