Help for my commande
#8

Quote:
Originally Posted by Azzeto
Посмотреть сообщение
Heres my vehicle dialog from my blank gamemode I made.
pawn Код:
if(dialogid == DIALOG_VEHICLES)
{
new Float:x,Float:y,Float:z;
if(response == 1)// They pressed the first button.
{
            switch(listitem)// Checking which listitem was selected
            {
                case 0:// Elegy - First item in the Dialog
                {
                    GetPlayerPos(playerid,x,y,z);
                    CreateVehicle(562,x+3.0,y,z,0,-1,-1,5);
                   
                }
                case 1: //Sultan - Second Item in the Dialog
                {
                    GetPlayerPos(playerid,x,y,z);
                    CreateVehicle(560,x+3.0,y,z,0,-1,-1,5);
                }
                case 2://Infernus - Third Item in the Dialog
                {
                    GetPlayerPos(playerid,x,y,z);
                    CreateVehicle(411,x+3.0,y,z,0,-1,-1,5);
                }
                case 3://Turismo - Fourth Item in the Dialog
                {
                    GetPlayerPos(playerid,x,y,z);
                    CreateVehicle(451,x+3.0,y,z,0,-1,-1,5);
                }
                case 4://Hotring - Fifth Item in the Dialog
                {
                    GetPlayerPos(playerid,x,y,z);
                    CreateVehicle(494,x+3.0,y,z,0,-1,-1,5);
                }
                case 5://Hotring A - Sixth Item in the Dialog
                {
                    GetPlayerPos(playerid,x,y,z);
                    CreateVehicle(502,x+3.0,y,z,0,-1,-1,5);
                }
                case 6://Hotring B - Seventh Item in the Dialog
                {
                    GetPlayerPos(playerid,x,y,z);
                    CreateVehicle(503,x+3.0,y,z,0,-1,-1,5);
                }
                case 7://NRG - Eigth Item in the Dialog
                {
                    GetPlayerPos(playerid,x,y,z);
                    CreateVehicle(522,x+3.0,y,z,0,-1,-1,5);
                }
               
       
            }
}
}
I don't see any difference between his code and your code. Your code just more simple.
Reply


Messages In This Thread
Help for my commande - by Lhine.S - 22.08.2011, 20:57
Re: Help for my commande - by =WoR=G4M3Ov3r - 22.08.2011, 20:58
Re : Help for my commande - by Lhine.S - 22.08.2011, 21:04
Re: Help for my commande - by =WoR=Varth - 23.08.2011, 01:36
Re : Help for my commande - by Lhine.S - 23.08.2011, 03:00
Re: Help for my commande - by =WoR=Varth - 24.08.2011, 07:35
Re: Help for my commande - by Azzeto - 24.08.2011, 07:39
Re: Help for my commande - by =WoR=Varth - 24.08.2011, 07:43
Re: Help for my commande - by Azzeto - 24.08.2011, 07:49
Re : Help for my commande - by Lhine.S - 25.08.2011, 19:56

Forum Jump:


Users browsing this thread: 1 Guest(s)