SA-MP Forums Archive
Vehicle menu doesn't 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Vehicle menu doesn't work. (/showthread.php?tid=123362)



Vehicle menu doesn't work. - biltong - 25.01.2010

I made a menu to CreateVehicle at the player's x+5,y,z+1,angle(from GetPlayerFacingAngle), and the menu shows up (I made a /v command for it) but when I select a vehicle nothing happens. I can upload my script if needed.


Re: Vehicle menu doesn't work. - Jeffry - 25.01.2010

Yeah post it here.


Re: Vehicle menu doesn't work. - biltong - 25.01.2010

See attachments


Re: Vehicle menu doesn't work. - Jeffry - 25.01.2010

Well, i cant test it, but someone asked this before too.

pawn Code:
if(Current == vehiclemenu)
    {
    switch(row)
        {
            case 0: { /* Yours in here!!*/ }
            case 1: { /* and here */}
            case 2: { }
            case 3: { }
            case 4: { }
        }
        return 1;
    }
You can put your cases in these. BUT remember: ONLY 12 cases are possible!! (case0-case11) So remove your last 2 cases!!
IF you cant do it for tomorrow, I will try to make it for you on another PC where I can try it.

Inform me then.


Re: Vehicle menu doesn't work. - biltong - 25.01.2010

Max cases of 12? :/

Also, would the fact that I set the respawn delay to 0 have anything to do with it?

And why couldn't you test it?