Problem with switching vehicle.
#1

I tried to create a feature for VIP's where they can switch between their two vehicles, it shows the dialog and i couldnt make the response of the dialog veh is vehicle no 1 and vveh is vehicle number 2.Suppose i have a sultan and bullet and i am at san fierro with my sultan and i want to get my bullet at my place and respawn the sultan so how do it do it.Codes are given below.They dont work however compiles perfectly.
pawn Код:
else if(dialogid == 30)
    {
        if(response)
        {
            new carid, Veh, VVeh;
            if(!PlayerInfo[playerid][VVeh]) return SendClientMessage(playerid, COLOR_GREY, "You only have one car, cant switch to others unless you own two cars.");
           
            if(carid == Veh)
            {
                new Float:pos[3]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
                SetVehiclePos(pVeh, pos[0], pos[1], pos[2]);
                LinkVehicleToInterior(veh, GetPlayerInterior(playerid));
            }
            else if(carid == VVeh)
            {
                new Float:pos[3]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
                SetVehiclePos(pVVeh, pos[0], pos[1], pos[2]);
                LinkVehicleToInterior(veh, GetPlayerInterior(playerid));
            }
        }
    }
Reply


Messages In This Thread
Problem with switching vehicle. - by Laure - 01.01.2013, 10:30
Re: Problem with switching vehicle. - by Laure - 01.01.2013, 10:47
Re: Problem with switching vehicle. - by Laure - 01.01.2013, 12:30
Re: Problem with switching vehicle. - by Laure - 02.01.2013, 01:35
Re: Problem with switching vehicle. - by Christoffer - 02.01.2013, 01:51
Re: Problem with switching vehicle. - by Laure - 02.01.2013, 01:54
Re: Problem with switching vehicle. - by [HK]Ryder[AN] - 02.01.2013, 03:20
Re: Problem with switching vehicle. - by Jarnu - 02.01.2013, 03:28

Forum Jump:


Users browsing this thread: 1 Guest(s)