OnPlayerExitVehicle
#2

You getplayervehicleid when he exit so i think it counts as INVALID_VEHICLE_ID not sure
and also why getid if you allready got in the callback

PHP код:
public OnPlayerExitVehicle(playeridvehicleid)
{
    if(
RecentEnterExit[playerid] == 1)
    {
        
PutPlayerInVehicle(playeridvehicleid0);
        
SendClientMessage(playeridCOLOR_ERROR"Error: You cannot exit so soon.");
    }
    return 
1;

Reply


Messages In This Thread
OnPlayerExitVehicle - by Zmith - 23.06.2018, 13:46
Re: OnPlayerExitVehicle - by Lokii - 23.06.2018, 14:05
Re: OnPlayerExitVehicle - by Zmith - 23.06.2018, 14:27

Forum Jump:


Users browsing this thread: 1 Guest(s)