dialog problem please read & help
#1

ok so i made a dialog teleport menu and while making it i tested it and i click "stunt parks" then "las venturas" and nothing happens?? please help heres code


Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 9726)
    {
        if(response)
        {
            if(listitem == 0)   // Stunt Park Option From Teleport Main Menu
            {
            ShowPlayerDialog(playerid, 9872, DIALOG_STYLE_LIST, "Stunt Parks", "Las Venturas Airport", "Select", "");
            }
            if(listitem == 1)   // Hot Spots Option From Teleport Main Menu
            {
            SendClientMessage(playerid, 0xFF0000FF, "You Selected Hot Spots");
            }
            if(listitem == 2)   // Jumps Option From Teleport Main Menu
            {
            SendClientMessage(playerid, 0xFF0000FF, "You Selected Jumps");
            }
            if(listitem == 3)   // Base Jumps Option From Teleport Main Menu
            {
            SendClientMessage(playerid, 0xFF0000FF, "You Selected Base Jumps");
            }
            return 1;
		}
	    if(dialogid == 9872)
    	{
        if(response)
        {
            if(listitem == 0)   // Stunt Park Option From Teleport Main Menu
            {
            SendClientMessage(playerid, 0xFF0000FF, "You Picked Las Venturas");
            }
		}
	}
 }
	return 1;
}
thank you!!!



also sorry for the code this sites code just make the spaces messy
Reply
#2

Maybe you have other dialogs running in your server that may be interfering with this dialog.

Check to see if you have any other dialogs in your server, disable them temporarily, then retry this and tell me if it works.
Reply
#3

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 9726)
    {
        if(response)
        {
            if(listitem == 0)   // Stunt Park Option From Teleport Main Menu
            {
                ShowPlayerDialog(playerid, 9872, DIALOG_STYLE_LIST, "Stunt Parks", "Las Venturas Airport", "Select", "");
            }
            if(listitem == 1)   // Hot Spots Option From Teleport Main Menu
            {
                SendClientMessage(playerid, 0xFF0000FF, "You Selected Hot Spots");
            }
            if(listitem == 2)   // Jumps Option From Teleport Main Menu
            {
                SendClientMessage(playerid, 0xFF0000FF, "You Selected Jumps");
            }
            if(listitem == 3)   // Base Jumps Option From Teleport Main Menu
            {
                SendClientMessage(playerid, 0xFF0000FF, "You Selected Base Jumps");
            }
            return 1;
        }
        if(dialogid == 9872)
        {
            if(response)
            {
                if(listitem == 0)   // Stunt Park Option From Teleport Main Menu
                {
                    SendClientMessage(playerid, 0xFF0000FF, "You Picked Las Venturas");
                }
            }
        }
    }
    return 1;
}
There is a bracket in wrong place.
Reply
#4

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 9726)
    {
        if(response)
        {
            if(listitem == 0)   // Stunt Park Option From Teleport Main Menu
            {
                ShowPlayerDialog(playerid, 9872, DIALOG_STYLE_LIST, "Stunt Parks", "Las Venturas Airport", "Select", "");
            }
            if(listitem == 1)   // Hot Spots Option From Teleport Main Menu
            {
                SendClientMessage(playerid, 0xFF0000FF, "You Selected Hot Spots");
            }
            if(listitem == 2)   // Jumps Option From Teleport Main Menu
            {
                SendClientMessage(playerid, 0xFF0000FF, "You Selected Jumps");
            }
            if(listitem == 3)   // Base Jumps Option From Teleport Main Menu
            {
                SendClientMessage(playerid, 0xFF0000FF, "You Selected Base Jumps");
            }
            return 1;
        }
        if(dialogid == 9872)
        {
            if(response)
            {
                if(listitem == 0)   // Stunt Park Option From Teleport Main Menu
                {
                    SendClientMessage(playerid, 0xFF0000FF, "You Picked Las Venturas");
                }
            }
        }
    }
    return 1;
}
There is a bracket in wrong place.

dint work
Reply
#5

Quote:
Originally Posted by hadzx
Посмотреть сообщение
dint work
Did you fix the bracket?
Reply
#6

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
Did you fix the bracket?
yes dont worry il use msgbox with cmds ty nyways
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)