SA-MP Forums Archive
Having so many issues today.. - 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: Having so many issues today.. (/showthread.php?tid=300537)



Having so many issues today.. - Azzeto - 30.11.2011

Fixed it, needed to get the vehicle id of the player then use it to check if their in the vehicle.


Respuesta: Having so many issues today.. - junkbuster - 30.11.2011

pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
        if(truckm[1] || truckm[2] || truckm[3] || truckm[4] || truckm[5] || truckm[6])
        {
              ShowPlayerDialog(playerid,DIALOG_TRUCKMENU,DIALOG_STYLE_LIST,"Difficulties","Easy\nMedium\nHard.","Select","Close");
        }
        return 1;
    }
Try it.


Re: Having so many issues today.. - Azzeto - 30.11.2011

Nope, still shows the dialog no matter what vehicle im in