DIALOGS HELP PLEASE !!!
#8

pawn Код:
new healt, vehicleid;
to:
pawn Код:
new Float:healt, vehicleid;



------------------------

EDIT: And to not close the dialog:

Try:

pawn Код:
if(dialogid == DIALOG_DWEAP)
{
    if(response)
    {
        switch(listitem)
        {
            case 0:
            {
                GivePlayerWeapon(playerid, 34, 5000);
                SendClientMessage(playerid, RED, "You have picked Sniper.");
                return ShowPlayerDialog(playerid, DIALOG_DWEAP, DIALOG_STYLE_LIST, "Doantors Packet Weapons", "\nSniper" "\nM5" "\nTec9" "\nM4" "\nSawn Off" "\nDeagle" "\nArmor", "Get", "Cancel");
            }
            case 1:
            {
                GivePlayerWeapon(playerid, 29, 5000);
                SendClientMessage(playerid, RED, "You have picked MP5.");
                return ShowPlayerDialog(playerid, DIALOG_DWEAP, DIALOG_STYLE_LIST, "Doantors Packet Weapons", "\nSniper" "\nM5" "\nTec9" "\nM4" "\nSawn Off" "\nDeagle" "\nArmor", "Get", "Cancel");
            }
            case 2:
            {
                GivePlayerWeapon(playerid, 32, 6000);
                SendClientMessage(playerid, RED, "You have picked Tec9.");
                return ShowPlayerDialog(playerid, DIALOG_DWEAP, DIALOG_STYLE_LIST, "Doantors Packet Weapons", "\nSniper" "\nM5" "\nTec9" "\nM4" "\nSawn Off" "\nDeagle" "\nArmor", "Get", "Cancel");
            }
            case 3:
            {
                GivePlayerWeapon(playerid, 31, 5000);
                SendClientMessage(playerid, RED, "You have picked M4");
                return ShowPlayerDialog(playerid, DIALOG_DWEAP, DIALOG_STYLE_LIST, "Doantors Packet Weapons", "\nSniper" "\nM5" "\nTec9" "\nM4" "\nSawn Off" "\nDeagle" "\nArmor", "Get", "Cancel");
            }
            case 4:
            {
                GivePlayerWeapon(playerid, 26, 5000);
                SendClientMessage(playerid, RED, "You have picked Sawn Off.");
                return ShowPlayerDialog(playerid, DIALOG_DWEAP, DIALOG_STYLE_LIST, "Doantors Packet Weapons", "\nSniper" "\nM5" "\nTec9" "\nM4" "\nSawn Off" "\nDeagle" "\nArmor", "Get", "Cancel");
            }
            case 5:
            {
                GivePlayerWeapon(playerid, 24, 5000);
                SendClientMessage(playerid, RED, "You have picked Deagle.");
                return ShowPlayerDialog(playerid, DIALOG_DWEAP, DIALOG_STYLE_LIST, "Doantors Packet Weapons", "\nSniper" "\nM5" "\nTec9" "\nM4" "\nSawn Off" "\nDeagle" "\nArmor", "Get", "Cancel");
            }
            case 6:
            {
                SetPlayerArmour(playerid, 100.0);
                SendClientMessage(playerid, RED, "You have picked Armor.");
                return ShowPlayerDialog(playerid, DIALOG_DWEAP, DIALOG_STYLE_LIST, "Doantors Packet Weapons", "\nSniper" "\nM5" "\nTec9" "\nM4" "\nSawn Off" "\nDeagle" "\nArmor", "Get", "Cancel");
            }
        }
    }
    else SendClientMessage(playerid,0xff0000FF, "You have cancelled.");
}
Reply


Messages In This Thread
DIALOGS HELP PLEASE !!! - by Rafa - 26.11.2010, 18:48
Re: DIALOGS HELP PLEASE !!! - by randomkid88 - 26.11.2010, 18:58
Re: DIALOGS HELP PLEASE !!! - by Mehtab - 26.11.2010, 19:00
Re: DIALOGS HELP PLEASE !!! - by randomkid88 - 26.11.2010, 19:01
Re: DIALOGS HELP PLEASE !!! - by Rafa - 26.11.2010, 19:20
Re: DIALOGS HELP PLEASE !!! - by randomkid88 - 26.11.2010, 19:33
Re: DIALOGS HELP PLEASE !!! - by Rafa - 26.11.2010, 20:10
Re: DIALOGS HELP PLEASE !!! - by Jeffry - 26.11.2010, 20:12
Re: DIALOGS HELP PLEASE !!! - by Rafa - 26.11.2010, 20:15
Re: DIALOGS HELP PLEASE !!! - by Rafa - 26.11.2010, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)