Weird dialogs not shows up
#1

Код:
	if(dialogid == DIALOG_CLASS)
	{
		if(!response) return ShowPlayerDialog(playerid, DIALOG_CLASS, DIALOG_STYLE_LIST, "Choose your Class", "Assault 1\nSniper 2\nMedic 3\nFlame Thrower 4\nPilot 5\nEngineer 6\nSpy 7\nScout 8", "Next", "");
    	return 1; switch(listitem)
		{
			case 0:
			{
				ShowPlayerDialog(playerid, DIALOG_ASSAULT, DIALOG_STYLE_MSGBOX, "Class Information", "Information...", "Choose", "Back");
			}
			
		}
		}
				if(dialogid == DIALOG_ASSAULT)
		{
				if(response)
		{
				GivePlayerWeapon(playerid, 23, 200);
				SetPlayerHealth(playerid, 75);
		}
				else return ShowPlayerDialog(playerid, DIALOG_CLASS, DIALOG_STYLE_LIST, "Choose your Class", "Assault 1\nSniper 2\nMedic 3\nFlame Thrower 4\nPilot 5\nEngineer 6\nSpy 7\nScout 8", "Next", "");
		}
	return 1;
}
It must be show when pressing Next..? Or wrong response?
Reply
#2

pawn Код:
public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
{
    switch( dialogid )
    {
        case DIALOG_CLASS:
        {
            if( !response ) return ShowPlayerDialog(playerid, DIALOG_CLASS, DIALOG_STYLE_LIST, "Choose your Class", "Assault 1\nSniper 2\nMedic 3\nFlame Thrower 4\nPilot 5\nEngineer 6\nSpy 7\nScout 8", "Next", "");
            if( response )
            {
                switch( listitem )
                {
                    case 0:
                    {
                        ShowPlayerDialog(playerid, DIALOG_ASSAULT, DIALOG_STYLE_MSGBOX, "Class Information", "Information...", "Choose", "Back");
                        return 1;
                    }

                }
            }
        }
        case DIALOG_ASSAULT:
        {
            if( response )
            {
                GivePlayerWeapon(playerid, 23, 200);
                SetPlayerHealth(playerid, 75);
                return 1;
            }
            else return ShowPlayerDialog(playerid, DIALOG_CLASS, DIALOG_STYLE_LIST, "Choose your Class", "Assault 1\nSniper 2\nMedic 3\nFlame Thrower 4\nPilot 5\nEngineer 6\nSpy 7\nScout 8", "Next", "");
        }
    }
    return 0; // If you are using it inFilterScript
    /*
    return 1;
    */
// if you are using it in Gamemode
}
Reply
#3

Thnx Dwane
Reply
#4

No Problem MSI!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)