Dialog Not Gives Respone
#3

instead of always

PHP код:
if(listitem == 0)
if(
listitem == 1)
if(
listitem == 2
do:

PHP код:
if(listitem == 0)
else if(
listitem == 1)
else if(
listitem == 2
but you could also use a switch, which would be the best + fastest solution for this

PHP код:
switch(listitem)
{
    case 
0
    {
    
//your code
    
}
    case 
1:
    {
    
//your code
    
}
    case 
2:
    {
    
//your code
    
}

also, i'd recommend defining your Dialog id's lie this:

PHP код:
//on top of your script
#define DM_DIALOG 1
#define SOME_DIALOG 2
#define SOME_LIST 3
//and so on, for all your dialogs 
then instead of 1, you write DM_DIALOG:
ShowPlayerDialog(playerid, DM_DIALOG, DIALOG_STYLE_LIST,"Deathmatch Game","1.Terrorist\n2.Counter-Terrorist\n3.Exit Deathmatch", "Apply", "Close");

and in ondialogresponse too:
if(dialogid == DM_DIALOG)
Reply


Messages In This Thread
Dialog Not Gives Respone - by Awankz - 23.12.2013, 07:42
Re: Dialog Not Gives Respone - by Awankz - 23.12.2013, 09:16
Re: Dialog Not Gives Respone - by CutX - 23.12.2013, 09:19
Re: Dialog Not Gives Respone - by Awankz - 23.12.2013, 09:40
Re: Dialog Not Gives Respone - by Awankz - 23.12.2013, 09:44
Re: Dialog Not Gives Respone - by park4bmx - 23.12.2013, 09:46
Re: Dialog Not Gives Respone - by Awankz - 23.12.2013, 11:03
Re: Dialog Not Gives Respone - by Awankz - 23.12.2013, 12:15
Re: Dialog Not Gives Respone - by DarKKing - 23.12.2013, 12:19
Re: Dialog Not Gives Respone - by xVIP3Rx - 23.12.2013, 12:43

Forum Jump:


Users browsing this thread: 1 Guest(s)