SA-MP Forums Archive
GetPlayerVehicleID problem - 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: GetPlayerVehicleID problem (/showthread.php?tid=176085)



GetPlayerVehicleID problem - Venturas - 12.09.2010

pawn Код:
new vehicle;
        vehicle = GetPlayerVehicleID(playerid);
        if(vehicle(playerid) == 32)
        {
            if(AlreadyRequestedPatrol[playerid] == 1)
            {
                if(PlayerInfo[playerid][pMember] == 1)
                {
                    ShowPlayerDialog(playerid,70,DIALOG_STYLE_MSGBOX ,"LSPD Highspeed Patrol","This vehicle is the LSPD Highspeed Patrol Car! You must have permission from the chief to drive it./n Do you have permission?","Yes, I do.","No, I do not.");
                }
            }
        }
Please tell me what is wrong with "if(vehicle(playerid) == 32)"

Thanks!


Re: GetPlayerVehicleID problem - Retardedwolf - 12.09.2010

if(vehicle == 32)


Re: GetPlayerVehicleID problem - Toni - 12.09.2010

pawn Код:
if(IsPlayerInVehicle(playerid, 32)) // Maybe this or if(vehicleid == 32).
{
    if(AlreadyRequestedPatrol[playerid] == 1)
    {
        if(PlayerInfo[playerid][pMember] == 1)
        {
            ShowPlayerDialog(playerid,70,DIALOG_STYLE_MSGBOX ,"LSPD Highspeed Patrol","This vehicle is the LSPD Highspeed Patrol Car! You must have permission from the chief to drive it./n Do you have permission?","Yes, I do.","No, I do not.");
        }
    }
}



Re: GetPlayerVehicleID problem - Venturas - 12.09.2010

thanks every1