SA-MP Forums Archive
[Tutorial] [TUT]How to create a vehicle dialog menu - 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)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] [TUT]How to create a vehicle dialog menu (/showthread.php?tid=159934)

Pages: 1 2


Re: [TUT]How to create a vehicle dialog menu - HyperZ - 13.11.2010

Nice TUT.


Re: [TUT]How to create a vehicle dialog menu - maycore - 25.02.2011

Alright, I tried to make a " Weapon /duty " Station - But when I click " Confirm/Success/Okay " No " weapon " gets spawned for that player.
I dont know if I did it right, I'm a very newbie starter scripta you know.

Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

    if(dialogid == govmenu)
    {
        if(response)
        {
            if(listitem == 0)   // Desert Eagle
            {
                GivePlayerWeapon(playerid, 24, 100);
            }
            if(listitem == 1)   // Dodo
            {
                GivePlayerWeapon(playerid, 31, 500);
                }
        }
        return 1;
    }
    return 0;
}



Re: [TUT]How to create a vehicle dialog menu - tim10000 - 28.02.2011

where to put:
Code:
new Float:X, Float:Y, Float:Z, Float:Angle, pInt;



Re: [TUT]How to create a vehicle dialog menu - tim10000 - 28.02.2011

Quote:

tim10000
Re: [TUT]How to create a vehicle dialog menu
where to put:
Code:
new Float:X, Float:Y, Float:Z, Float:Angle, pInt;

got it
i still have some errors
Code:
C:\Users\tim\Documents\sa-mp server\gamemodes\new.pwn(113) : error 029: invalid expression, assumed zero
C:\Users\tim\Documents\sa-mp server\gamemodes\new.pwn(288) : error 017: undefined symbol "X"
C:\Users\tim\Documents\sa-mp server\gamemodes\new.pwn(289) : error 017: undefined symbol "Angle"
C:\Users\tim\Documents\sa-mp server\gamemodes\new.pwn(290) : error 017: undefined symbol "pInt"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: [TUT]How to create a vehicle dialog menu - bestr32 - 15.03.2011

Good, but it should better if u do it like this:
pawn Code:
PutPlayerInVehicle(playerid,CreateVehicle(592,X,Y,Z,0,-1,-1,-1),0);
not like this:
pawn Code:
CreateVehicle(592, X+5, Y, Z+1, Angle, random(100), random(100), -1);



Re: [TUT]How to create a vehicle dialog menu - SkizzoTrick - 15.03.2011

Why have you defined the vmenu ?You could just write the id ...


Re: [TUT]How to create a vehicle dialog menu - IvancheBG - 27.03.2011

i have a problem when i do the tut it shows this error

Code:
C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(291) : error 035: argument type mismatch (argument 4)
C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(437) : warning 217: loose indentation
C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(440) : warning 225: unreachable code
C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(440) : warning 217: loose indentation
C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(443) : warning 217: loose indentation
C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(443) : error 029: invalid expression, assumed zero
C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(443) : error 004: function "OnPlayerClickPlayer" is not implemented
C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(447) : error 030: compound statement not closed at the end of file (started at line 431)



Re: [TUT]How to create a vehicle dialog menu - NeymarJr - 30.05.2012

I got this error, someone help me please?

error 017: undefined symbol "vmenu"

wrong post sorry, idk how to delete


Re: [TUT]How to create a vehicle dialog menu - NeymarJr - 30.05.2012

I got this error, its from ShowPlayerDialog line...

error 017: undefined symbol "vmenu"

help me please?


Re: [TUT]How to create a vehicle dialog menu - SkL_MD - 30.05.2012

Nice work!


Re: [TUT]How to create a vehicle dialog menu - mickos - 04.06.2012

nie tutorial


Re: [TUT]How to create a vehicle dialog menu - samlockyer - 17.06.2012

Sorry , im a noob to scripting , could you put a ******* tut up?


Re: [TUT]How to create a vehicle dialog menu - Povis - 18.08.2012

This is FilterScript? or this code write in gamemode?


Re: [TUT]How to create a vehicle dialog menu - Pilip93 - 08.07.2013

Both. Doesnt matter... If you want it to be filterscript remove the // before the #define filterscript.


Re: [TUT]How to create a vehicle dialog menu - Mindcode - 09.07.2013

Can you Explain me why you use Case: vmenu instead of Case vmenu: ( i get errors in my script about case)