[Tutorial] [TUT]How to create a vehicle dialog menu
#21

Nice TUT.
Reply
#22

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;
}
Reply
#23

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

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.
Reply
#25

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);
Reply
#26

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

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)
Reply
#28

I got this error, someone help me please?

error 017: undefined symbol "vmenu"

wrong post sorry, idk how to delete
Reply
#29

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

error 017: undefined symbol "vmenu"

help me please?
Reply
#30

Nice work!
Reply
#31

nie tutorial
Reply
#32

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

This is FilterScript? or this code write in gamemode?
Reply
#34

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)