SA-MP Forums Archive
Why do these not work ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Why do these not work ? (/showthread.php?tid=332046)



Why do these not work ? - Scripter12345 - 06.04.2012

Well i have tried changing the ID's to the cars but they all still spawn bikes and when i click "Back" it spawns me a faggio


pawn Код:
if(dialogid == DIALOG_MORE) // More
    {
        if(response)
        {
            if(listitem == 0) // Regina
            {
    CreateVehicleEx(playerid,479, X,Y,Z+1, Angle, random(126), random(126), -1);
            }
            if(listitem == 1) // Romero
            {
    CreateVehicleEx(playerid,442, X,Y,Z+1, Angle, random(126), random(126), -1);
            }
            if(listitem == 2) // Solair
            {
    CreateVehicleEx(playerid,458, X,Y,Z+1, Angle, random(126), random(126), -1);
            }
            if(listitem == 3) // Stratum
            {
    CreateVehicleEx(playerid,561, X,Y,Z+1, Angle, random(126), random(126), -1);
            }
            if(listitem == 4) // Back
            {
                ShowPlayerDialog(playerid, DIALOG_CAR, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex", "Select", "Cancel");
            }
        }
        return 1;
    }
}

Please Help Me Please


Re: Why do these not work ? - [HiC]TheKiller - 07.04.2012

Can you post the ShowPlayerDialog for DIALOG_MORE?