RemovePlayerFromVehicle
#1

Hi guys...

I have a problem with this function. the function DOESN'T WORK

Code:
pawn Код:
if(dialogid == 11112)
    {
        if(response)
        {
// MY CODE
        }
        else
        {
            RemovePlayerFromVehicle(playerid);
            TogglePlayerControllable(playerid, 1);
        }
    }
The code is about renting... If he doesn't want to rent than the removeplayerfromvehicle should run but the function doesn't work.
Reply
#2

pawn Код:
if(dialogid == 11112)
    {
        if(response)
        {
// MY CODE
        }
        else
        {
            RemovePlayerFromVehicle(playerid);
            TogglePlayerControllable(playerid, 1);
        }
        return 1;
    }
HELLAS[MAKEDONIA]
Reply
#3

You're not even changing anything that makes a difference. The return doesn't matter - it's called AFTER.

Debug it to see if it's being called.
Reply
#4

I had this problem too, the thing I did is call the function twice, and as I recall it worked for me.
Also debug as MP2 said.
Reply
#5

It should be noted that at certain speeds, players are unable to exit the vehicle. The vehicle either has to be going pretty slow or pretty fast for it to work. An alternative could be SetPlayerPos, but this probably isn't want you want as it will just teleport them out.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)