Problem with Dialog Spoof
#1

DEFINES=
pawn Код:
#define RRMENU 10253
#define RRMENUWEP 10254
#define RRMENUSKIN 10255
CMD=
pawn Код:
CMD:rapid(playerid, params[])
{
    if(PlayerInfo[playerid][pFaction] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pFaction] == 17 || PlayerInfo[playerid][pLeader] == 17)
    {
        SetPVarInt(playerid, "dialog", RRMENU);
        ShowPlayerDialogEx(playerid, RRMENU, DIALOG_STYLE_LIST, "Rapid Recovery","Rapid Uniforms\nRapid Equipment\nRefill Health($1000)\nKevlar Vest($1000)\nMechanic Job", "Select", "Cancel");
    }
    return 1;
}
DialogResponse=
pawn Код:
else if(dialogid == 10253)
    {
        if(response) switch(listitem)
        {
            case 0: // CAL Uniforms
            {
                SetPVarInt(playerid, "dialog", RRMENU);
                ShowPlayerDialog(playerid, RRMENUSKIN, DIALOG_STYLE_LIST, "Rapid Skins", "Mechanic\nMechanic 2\nMechanic 3", "Select", "Cancel");
            }
            case 1: // CAL Weapons
            {
                SetPVarInt(playerid, "dialog", RRMENU);
                ShowPlayerDialog(playerid, RRMENUWEP, DIALOG_STYLE_LIST, "Rapid Equipment","Shovel\nFire Extinguisher\nCamera", "Purchase", "Cancel");
            }
            case 2: // NG Heal
            {
                SetPlayerHealth(playerid, 100);
            }
            case 3:
            {
                SetPlayerArmour(playerid, 100);
            }
            case 4: // Mechanic
            {
                SetPVarInt(playerid, "dialog", RRMENU);
                ShowPlayerDialog(playerid, 7485, DIALOG_STYLE_LIST, "Mechanic Job", "Job Slot 1\nJob Slot 2", "Proceed", "Cancel");
            }
        }
    }
    else if(dialogid == 10255)
    {
        if(response)
        {
            if(listitem == 0) // LSPD Uniforms
            {
                SetPlayerSkin(playerid, 50);
                PlayerInfo[playerid][pSkin] = 50;
            }
            if(listitem == 1) //LSPD Uniforms
            {
                SetPlayerSkin(playerid, 8);
                PlayerInfo[playerid][pSkin] = 8;
            }
            if(listitem == 2) // LSPD Uniforms
            {
                SetPlayerSkin(playerid, 42);
                PlayerInfo[playerid][pSkin] = 42;
            }
        }
    }
    else if(dialogid == 10254)
    {
        if(response)
        {
            if(listitem == 0)
            {
                GivePlayerValidWeapon(playerid, 6, 1);
            }
            if(listitem == 1)
            {
                GivePlayerValidWeapon(playerid, 42, 999999);
            }
            if(listitem == 2)
            {
                GivePlayerValidWeapon(playerid, 43, 99999);
            }
        }
    }
I already did , change the Dialog name to Dialogid Still de Same




HELP ME THIS IS THE LAST PROBLEM THEN MY FACTION IS COMPLETE HELP PLEASE
Reply


Messages In This Thread
Problem with Dialog Spoof - by cedizon - 19.05.2014, 04:38
Re: Problem with Dialog Spoof - by jihadmeneer - 19.05.2014, 08:19
Re: Problem with Dialog Spoof - by cedizon - 20.05.2014, 00:56
Re: Problem with Dialog Spoof - by cedizon - 20.05.2014, 01:04
Re: Problem with Dialog Spoof - by denom - 20.05.2014, 04:48
Re: Problem with Dialog Spoof - by jihadmeneer - 20.05.2014, 05:42
Re: Problem with Dialog Spoof - by cedizon - 20.05.2014, 06:38

Forum Jump:


Users browsing this thread: 1 Guest(s)