dialogs conflicting
#1

hey i got like 2 different dialogs.. with different id's but when i go to the second one it says that i dont got enough money to do w/e when the vehicle is free..

in shorter terms dialog_weaps conflict with the other dialog ids

pawn Код:
if(dialogid==Dialog_Weaps)
    {
    if(response) {
        if(listitem==0) {
            if(GetPlayerMoney(playerid) < 2500) {
                SendClientMessage(playerid,red, "The Uzi costs $2500.You Don't Have Enough Money!");
                return 1;
            }
            GivePlayerMoney(playerid, 2500);
            SendClientMessage(playerid, COLOR_GREEN, "You bought Uzi!");
            GivePlayerWeapon(playerid, 28, 150);
            return 1;
        }
        if(listitem==1) {
            if(GetPlayerMoney(playerid) < 10000) {
                SendClientMessage(playerid,red, "The Ak47 costs $1800.You Don't Have Enough Money");
                return 1;
            }
            GivePlayerMoney(playerid, -10000);
            SendClientMessage(playerid, COLOR_GREEN, "You bought Ak47!");
            GivePlayerWeapon(playerid, 30, 150);
            return 1;
        }
        if(listitem==2) {
            if(GetPlayerMoney(playerid) < 20000) {
                SendClientMessage(playerid,red, "The Sawn-Off costs $20000.You Don't Have Enough Money!");
                return 1;
            }
            GivePlayerMoney(playerid, -20000);
            SendClientMessage(playerid, COLOR_GREEN, "You bought Sawn-Off!");
            GivePlayerWeapon(playerid, 26, 150);
            return 1;
        }
        if(listitem==3) {
            if(GetPlayerMoney(playerid) < 3500) {
                SendClientMessage(playerid,red, "The Tec9 costs $3500.You Don't Have Enough Money!");

                return 1;
            }
            GivePlayerMoney(playerid, -3500);
            SendClientMessage(playerid, COLOR_GREEN, "You bought Tec9!");
            GivePlayerWeapon(playerid, 32, 150);

            return 1;
        }
        if(listitem==4) {
            if(GetPlayerMoney(playerid) < 20999) {
                SendClientMessage(playerid,red, "The SMG costs $20999.You Don't Have Enough Money!");

                return 1;
            }
            GivePlayerMoney(playerid, -20999);
            SendClientMessage(playerid, COLOR_GREEN, "You bought SMG!");
            GivePlayerWeapon(playerid, 29, 150);

            return 1;
        }
        if(listitem==5) {
            if(GetPlayerMoney(playerid) < 25000) {
                SendClientMessage(playerid,red, "The Combat Shotgun costs $34500.You Don't Have Enough Money!");

                return 1;
            }
            GivePlayerMoney(playerid, -25000);
            SendClientMessage(playerid, COLOR_GREEN, "You bought a Combat Shotgun!");
            GivePlayerWeapon(playerid, 27, 150);

            return 1;
        }
        if(listitem==6) {
            if(GetPlayerMoney(playerid) < 150000) {
                SendClientMessage(playerid,red,"The Rocket Launcher costs $150000!You haven't enough money!");
                return 1;
            }
            GivePlayerMoney(playerid,-150000);
            SendClientMessage(playerid,COLOR_GREEN,"You bought a Rocket Launcher!");
            GivePlayerWeapon(playerid,35,15);
            return 1;
        }
        if(listitem==7) {

            if(GetPlayerMoney(playerid) < 3500) {
                SendClientMessage(playerid,red,"You don't have enough money for heal yourself!");
                return 1;
            }
            GivePlayerMoney(playerid,-3500);
            SetPlayerHealth(playerid,100);
            SetPlayerArmour(playerid,100);
            return 1;
        }
    }
}

    if(dialogid == 1)
    {
        if(response)
        {
            if(listitem == 0)
            {
                ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, ".:~Los Santos Nissan Dealership~:. |Cars|", "Landstalker\nBravura\nBuffalo\nPerenniel\nSentinel\nManana\nInfernus\nVoodoo\nPony\nCheetah\nAmbulance\nMoonbeam\nEsperanto\nTaxi\nWashington\nBobcat\nBF Injection\nPremier\nBanshee\nPrevion\nCabbie\nStallion\nRumpo\nAdmiral\nTurismo", "Spawn", "Exit");
            }
            if(listitem == 1)
            {
                ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ".:~Los Santos Nissan Dealership~:. |Cars 2|", "Berkleys RC Van\nSolair\nGlendale\nOceanic\nPatriot\nHermes\nSabre\nZR350\nWalton\nRegina\nComet\nBurrito\nRancher\nFBI Rancher\nVirgo\nGreenwood\nHotring Racer\nSandking\nBlista Compact\nMesa", "Spawn", "Exit");
            }
            if(listitem == 2)
            {
                ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, ".:~Los Santos Nissan Dealership~:. |Cars 3|", "Hotring Racer A\nHotring Racer B\nBloodring Banger\nSuper GT\nElegant\nNebula\nMajestic\nBuccaneer\nFortune\nCadrona\nWillard\nFletzer\nRemington\nSlamvan\nBlade\nVincent\nBullet\nClover\nSadler\nIntruder\nPrimo\nTampa\nSunrise", "Spawn", "Exit");
            }
            if(listitem == 3)
            {
                ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, ".:~Niixes Spawn Menu~:. |Cars 4|", "Merit\nYosemite\nWindsor\nUranus\nJester\nSultan\nStratum\nElegy\nFlash\nTahoma\nSavanna\nBandito\nBroadway\nTornado\nHuntley\nStafford\nNews Van\nEmperor\nEuros\nClub\nLSPD Car\nSFPD Car\nLVPD Car\nRanger\nPicador\nAlpha\nPhoenix\nGlendale Shit\nSadler Shit", "Spawn", "Exit");
            }
            if(listitem == 4)
            {
                ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, ".:~Los Santos Nissan Dealership~:. |Big Vehicles|", "Linerunner\nDumper\nFiretruck\nTrashmaster\nMule\nEnforcer\nBus\nRhino\nBarracks\nCoach\nPacker\nMonster\nFlatbed\nYankee\nBoxville\nBenson\nPetrol Tanker\nRoadtrain\nCement Truck\nFBI Truck\nFiretruck LA\nUtility Van\nMonster A\nMonster B\nDune\nDFT-30\nS.W.A.T.\nBoxburg", "Spawn", "Exit");
            }
            if(listitem == 5)
            {
                ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, ".:~Los Santos Nissan Dealership~:. |Boats|", "Coastguard\nDinghy\nJetmax\nLaunch\nMarquis\nPredator\nReefer\nSpeeder\nSquallo\nTropic", "Spawn", "Exit");
            }
            if(listitem == 6)
            {
                ShowPlayerDialog(playerid, 8, DIALOG_STYLE_LIST, ".:~Los Santos Nissan Dealership~:. |Planes / Helis|", "Andromada\nAT-400\nBeagle\nCropduster\nDodo\nHydra\nNevada\nRustler\nShamal\nSkimmer\nStuntplane\nCargobob\nHunter\nLeviathan\nMaverik\nNews Maverik\nPolice Maverik\nRaindance\nSeasparrow\nSparrow", "Spawn", "Exit");
            }
            if(listitem == 7)
            {
                ShowPlayerDialog(playerid, 9, DIALOG_STYLE_LIST, ".:~Los Santos Nissan Dealership~:. |Motorbikes|", "BF-400\nFaggio\nFCR-900\nFreeway\nNRG-500\nPCJ-600\nPizzaboy\nQuad\nSanchez\nWayfarer", "Spawn", "Exit");
            }
            if(listitem == 8)
            {
                ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, ".:~Los Santos Nissan Dealership~:. |Bikecycles|", "Bike\nBMX\nMountain Bike", "Spawn", "Exit");
            }
            if(listitem == 9)
            {
                ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, ".:~Los Santos Nissan Dealership~:. |Tuned|", "Tuned Sultan\nTuned Elegy\nTuned Uranus\nTuned Euro\nTuned Jester\nTransfender\nWheel Arch Angels", "Get", "Exit");
            }
            if(listitem == 10)
            {
                ShowPlayerDialog(playerid, 12, DIALOG_STYLE_MSGBOX, ".:~Los Santos Nissan Dealership~:. |Credits|", "Credits To Niixies And Kar\n\nRegards\nNiixie/Kar", "Okay", "Back");
            }
        }
    }

    if(dialogid == 2)
    {
        if(response)
        {
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            if(listitem == 0)
            {
                CreateVehicle(400, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 1)
            {
                CreateVehicle(401, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 2)
            {
                CreateVehicle(402, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 3)
            {
                CreateVehicle(404, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 4)
            {
                CreateVehicle(405, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 5)
            {
                CreateVehicle(410, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 6)
            {
                CreateVehicle(411, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 7)
            {
                CreateVehicle(412, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 8)
            {
                CreateVehicle(413, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 9)
            {
                CreateVehicle(415, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 10)
            {
                CreateVehicle(418, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 11)
            {
                CreateVehicle(419, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 12)
            {
                CreateVehicle(420, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 13)
            {
                CreateVehicle(421, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 14)
            {
                CreateVehicle(422, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 15)
            {
                CreateVehicle(424, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 16)
            {
                CreateVehicle(426, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 17)
            {
                CreateVehicle(429, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 18)
            {
                CreateVehicle(436, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 19)
            {
                CreateVehicle(438, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 20)
            {
                CreateVehicle(439, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 21)
            {
                CreateVehicle(440, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 22)
            {
                CreateVehicle(445, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 23)
            {
                CreateVehicle(451, x+5, y, z, 90, -1, -1, -1);
            }
        }
    }

    if(dialogid == 3)
    {
        if(response)
        {
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            if(listitem == 0)
            {
                CreateVehicle(458, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 1)
            {
                CreateVehicle(459, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 2)
            {
                CreateVehicle(466, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 3)
            {
                CreateVehicle(467, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 4)
            {
                CreateVehicle(470, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 5)
            {
                CreateVehicle(474, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 6)
            {
                CreateVehicle(475, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 7)
            {
                CreateVehicle(477, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 8)
            {
                CreateVehicle(478, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 9)
            {
                CreateVehicle(479, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 10)
            {
                CreateVehicle(480, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 11)
            {
                CreateVehicle(482, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 12)
            {
                CreateVehicle(489, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 13)
            {
                CreateVehicle(490, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 14)
            {
                CreateVehicle(491, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 15)
            {
                CreateVehicle(492, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 16)
            {
                CreateVehicle(494, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 17)
            {
                CreateVehicle(495, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 18)
            {
                CreateVehicle(496, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 19)
            {
                CreateVehicle(500, x+5, y, z, 90, -1, -1, -1);
            }
        }
    }

    if(dialogid == 4)
    {
        if(response)
        {
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            if(listitem == 0)
            {
                CreateVehicle(502, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 1)
            {
                CreateVehicle(503, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 2)
            {
                CreateVehicle(504, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 3)
            {
                CreateVehicle(505, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 4)
            {
                CreateVehicle(506, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 5)
            {
                CreateVehicle(507, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 6)
            {
                CreateVehicle(516, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 7)
            {
                CreateVehicle(517, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 8)
            {
                CreateVehicle(518, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 9)
            {
                CreateVehicle(526, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 10)
            {
                CreateVehicle(527, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 11)
            {
                CreateVehicle(529, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 12)
            {
                CreateVehicle(533, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 13)
            {
                CreateVehicle(534, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 14)
            {
                CreateVehicle(535, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 15)
            {
                CreateVehicle(536, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 16)
            {
                CreateVehicle(540, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 17)
            {
                CreateVehicle(541, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 18)
            {
                CreateVehicle(542, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 19)
            {
                CreateVehicle(543, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 20)
            {
                CreateVehicle(546, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 21)
            {
                CreateVehicle(547, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 22)
            {
                CreateVehicle(549, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 23)
            {
                CreateVehicle(550, x+5, y, z, 90, -1, -1, -1);
            }
        }
    }

    if(dialogid == 5)
    {
        if(response)
        {
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            if(listitem == 0)
            {
                CreateVehicle(551, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 1)
            {
                CreateVehicle(554, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 2)
            {
                CreateVehicle(555, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 3)
            {
                CreateVehicle(558, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 4)
            {
                CreateVehicle(559, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 5)
            {
                CreateVehicle(560, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 6)
            {
                CreateVehicle(561, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 7)
            {
                CreateVehicle(562, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 8)
            {
                CreateVehicle(565, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 9)
            {
                CreateVehicle(566, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 10)
            {
                CreateVehicle(567, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 11)
            {
                CreateVehicle(568, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 12)
            {
                CreateVehicle(575, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 13)
            {
                CreateVehicle(576, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 14)
            {
                CreateVehicle(579, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 15)
            {
                CreateVehicle(580, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 16)
            {
                CreateVehicle(582, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 17)
            {
                CreateVehicle(585, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 18)
            {
                CreateVehicle(587, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 19)
            {
                CreateVehicle(589, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 20)
            {
                CreateVehicle(596, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 21)
            {
                CreateVehicle(597, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 22)
            {
                CreateVehicle(598, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 23)
            {
                CreateVehicle(599, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 24)
            {
                CreateVehicle(600, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 25)
            {
                CreateVehicle(602, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 26)
            {
                CreateVehicle(603, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 27)
            {
                CreateVehicle(604, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 28)
            {
                CreateVehicle(605, x+5, y, z, 90, -1, -1, -1);
            }
        }
    }

    if(dialogid == 6)
    {
        if(response)
        {
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            if(listitem == 0)
            {
                CreateVehicle(403, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 1)
            {
                CreateVehicle(406, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 2)
            {
                CreateVehicle(407, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 3)
            {
                CreateVehicle(408, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 4)
            {
                CreateVehicle(414, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 5)
            {
                CreateVehicle(427, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 6)
            {
                CreateVehicle(431, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 7)
            {
                CreateVehicle(432, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 8)
            {
                CreateVehicle(433, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 9)
            {
                CreateVehicle(437, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 10)
            {
                CreateVehicle(443, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 11)
            {
                CreateVehicle(444, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 12)
            {
                CreateVehicle(455, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 13)
            {
                CreateVehicle(456, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 14)
            {
                CreateVehicle(498, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 15)
            {
                CreateVehicle(499, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 16)
            {
                CreateVehicle(514, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 17)
            {
                CreateVehicle(515, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 18)
            {
                CreateVehicle(524, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 19)
            {
                CreateVehicle(528, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 20)
            {
                CreateVehicle(544, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 21)
            {
                CreateVehicle(552, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 22)
            {
                CreateVehicle(556, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 23)
            {
                CreateVehicle(557, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 24)
            {
                CreateVehicle(573, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 25)
            {
                CreateVehicle(578, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 26)
            {
                CreateVehicle(601, x+10, y, z, 90, -1, -1, -1);
            }
            if(listitem == 27)
            {
                CreateVehicle(609, x+10, y, z, 90, -1, -1, -1);
            }
        }
    }

    if(dialogid == 7)
    {
        if(response)
        {
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            if(listitem == 0)
            {
                CreateVehicle(472, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 1)
            {
                CreateVehicle(473, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 2)
            {
                CreateVehicle(493, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 3)
            {
                CreateVehicle(495, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 4)
            {
                CreateVehicle(484, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 5)
            {
                CreateVehicle(430, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 6)
            {
                CreateVehicle(453, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 7)
            {
                CreateVehicle(452, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 8)
            {
                CreateVehicle(446, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 9)
            {
                CreateVehicle(454, x+5, y, z, 90, -1, -1, -1);
            }
        }
    }

    if(dialogid == 8)
    {
        if(response)
        {
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            if(listitem == 0)
            {
                CreateVehicle(592, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 1)
            {
                CreateVehicle(577, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 2)
            {
                CreateVehicle(511, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 3)
            {
                CreateVehicle(512, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 4)
            {
                CreateVehicle(593, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 5)
            {
                CreateVehicle(520, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 6)
            {
                CreateVehicle(553, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 7)
            {
                CreateVehicle(476, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 8)
            {
                CreateVehicle(519, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 9)
            {
                CreateVehicle(460, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 10)
            {
                CreateVehicle(513, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 11)
            {
                CreateVehicle(548, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 12)
            {
                CreateVehicle(425, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 13)
            {
                CreateVehicle(417, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 14)
            {
                CreateVehicle(487, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 15)
            {
                CreateVehicle(488, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 16)
            {
                CreateVehicle(487, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 17)
            {
                CreateVehicle(563, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 18)
            {
                CreateVehicle(447, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 19)
            {
                CreateVehicle(469, x+5, y, z, 90, -1, -1, -1);
            }
        }
    }

    if(dialogid == 9)
    {
        if(response)
        {
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            if(listitem == 0)
            {
                CreateVehicle(581, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 1)
            {
                CreateVehicle(463, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 2)
            {
                CreateVehicle(521, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 3)
            {
                CreateVehicle(463, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 4)
            {
                CreateVehicle(522, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 5)
            {
                CreateVehicle(461, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 6)
            {
                CreateVehicle(448, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 7)
            {
                CreateVehicle(471, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 8)
            {
                CreateVehicle(468, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 9)
            {
                CreateVehicle(586, x+5, y, z, 90, -1, -1, -1);
            }
        }
    }

    if(dialogid == 10)
    {
        if(response)
        {
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            if(listitem == 0)
            {
                CreateVehicle(509, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 1)
            {
                CreateVehicle(481, x+5, y, z, 90, -1, -1, -1);
            }
            if(listitem == 2)
            {
                CreateVehicle(510, x+5, y, z, 90, -1, -1, -1);
            }
        }
    }

    if(dialogid == 11)
    {
        if(response)
        {
            new Float:x, Float:y, Float:z,
                tSultan, tElegy, tUranus, tEuro, tJester;
            GetPlayerPos(playerid, x, y, z);
            if(listitem == 0)
            {
                tSultan = CreateVehicle(560, x, y, z, 0, -1, -1, -1);
                PutPlayerInVehicle(playerid, tSultan, 0);
                AddVehicleComponent(tSultan, 1010);
                AddVehicleComponent(tSultan, 1026);
                AddVehicleComponent(tSultan, 1027);
                AddVehicleComponent(tSultan, 1028);
                AddVehicleComponent(tSultan, 1032);
                AddVehicleComponent(tSultan, 1074);
                AddVehicleComponent(tSultan, 1087);
                AddVehicleComponent(tSultan, 1138); // Spoiler
                ChangeVehiclePaintjob(tSultan, 2);
                SendClientMessage(playerid, White, "You've spawned a tuned sultan");
            }
            if(listitem == 1)
            {
                tElegy = CreateVehicle(562, x, y, z, 0, -1, -1, -1);
                PutPlayerInVehicle(playerid, tElegy, 0);
                AddVehicleComponent(tElegy, 1010);
                AddVehicleComponent(tElegy, 1074);
                AddVehicleComponent(tElegy, 1087);
                AddVehicleComponent(tElegy, 1034);
                AddVehicleComponent(tElegy, 1036);
                AddVehicleComponent(tElegy, 1038);
                AddVehicleComponent(tElegy, 1040);
                AddVehicleComponent(tElegy, 1147);
                ChangeVehiclePaintjob(tElegy, 2);
                SendClientMessage(playerid, White, "You've spawned a tuned elegy");
            }
            if(listitem == 2)
            {
                tUranus = CreateVehicle(558, x, y, z, 0, -1, -1, -1);
                PutPlayerInVehicle(playerid, tUranus, 0);
                AddVehicleComponent(tUranus, 1088);
                AddVehicleComponent(tUranus, 1090);
                AddVehicleComponent(tUranus, 1092);
                AddVehicleComponent(tUranus, 1094);
                AddVehicleComponent(tUranus, 1010);
                AddVehicleComponent(tUranus, 1074);
                AddVehicleComponent(tUranus, 1087);
                AddVehicleComponent(tUranus, 1166); // Front Bumper
                AddVehicleComponent(tUranus, 1167); // Rear Bumper
                AddVehicleComponent(tUranus, 1163); // Spoiler
                ChangeVehiclePaintjob(tUranus, 2);
                SendClientMessage(playerid, White, "You've spawned a tuned uranus");
            }
            if(listitem == 3)
            {
                tEuro = CreateVehicle(587, x, y, z, 0, -1, -1, -1);
                PutPlayerInVehicle(playerid, tEuro, 0);
                AddVehicleComponent(tEuro, 1010);
                AddVehicleComponent(tEuro, 1074);
                AddVehicleComponent(tEuro, 1087);
                SendClientMessage(playerid, White, "You've spawned a tuned euros");
            }
            if(listitem == 4)
            {
                tJester = CreateVehicle(559, x, y, z, 0, -1, -1, -1);
                PutPlayerInVehicle(playerid, tJester, 0);
                AddVehicleComponent(tJester, 1010);
                AddVehicleComponent(tJester, 1074);
                AddVehicleComponent(tJester, 1087);
                AddVehicleComponent(tJester, 1065);
                AddVehicleComponent(tJester, 1067);
                AddVehicleComponent(tJester, 1069);
                AddVehicleComponent(tJester, 1071);
                AddVehicleComponent(tJester, 1160); // Front Bumper
                AddVehicleComponent(tJester, 1159); // Rear Bumper
                AddVehicleComponent(tJester, 1158); // Spoiler
                ChangeVehiclePaintjob(tJester, 2);
                SendClientMessage(playerid, White, "You've spawned a tuned jester");
            }
            if(listitem == 5)
            {
                if(IsPlayerInAnyVehicle(playerid))
                {
                    SetVehiclePos(GetPlayerVehicleID(playerid),-1935.7684,236.3854,33.9708);
                    SetVehicleZAngle(GetPlayerVehicleID(playerid), 1.3517);
                    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
                    SendClientMessage(playerid, White, "You've been warped to the Transfender");
                }
                else
                {
                    SendClientMessage(playerid, White, "Your not in a vehicle, so nothing to do in a tuning shop!");
                }
            }
            if(listitem == 6)
            {
                if(IsPlayerInAnyVehicle(playerid))
                {
                    SetVehiclePos(GetPlayerVehicleID(playerid), -2721.7175, 217.3232, 4.1266);
                    SetVehicleZAngle(GetPlayerVehicleID(playerid), 90.0000);
                    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
                    SendClientMessage(playerid, White, "You've been warped to the Arch Wheels");
                }
                else
                {
                  SendClientMessage(playerid, White, "Your not in a vehicle, so nothing to do in a tuning shop!");
                }
            }
        }
    }
Reply
#2

What's the value with dialog_weaps? Also try return one before another dialog code begins. Example:

pawn Код:
if(dialogid == 43) {
    if(listitem == 0) {
       // stuff
    }
    // etc.
    return 1;
}
Reply
#3

what do u mean the value
Reply
#4

Click me.
Reply
#5

i know what value means but idk what ur talking about.. maybe this?

pawn Код:
case lscarshop:
        {
            ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, ".:~Los Santos Nissan Dealership~:.", "Cars\nCars 2\nCars 3\nCars 4\nBig Vehicles\nBoats\nPlanes / Helis\nMotorbikes\nBikecycle\nTuned\nCredits", "Enter", "Exit");
        }
Reply
#6

Meaning, what's the define value of dialog_weaps?

Example:

pawn Код:
#define dialog_weaps 5555555
Reply
#7

Quote:
Originally Posted by Carlton
Посмотреть сообщение
Meaning, what's the define value of dialog_weaps?

Example:

pawn Код:
#define dialog_weaps 5555555
@ Kar.
Value = Dialog ID, in shorter terms.
Reply
#8

pawn Код:
#define Dialog_Weaps 1
Sorry. I'm A Bit like 40% up to understanding everything about dialogs

nvm fixed defined it as 12
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)