GetPlayerVehicleID problem
#1

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!
Reply
#2

if(vehicle == 32)
Reply
#3

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.");
        }
    }
}
Reply
#4

thanks every1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)