23.06.2018, 14:05
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
and also why getid if you allready got in the callback
PHP код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(RecentEnterExit[playerid] == 1)
{
PutPlayerInVehicle(playerid, vehicleid, 0);
SendClientMessage(playerid, COLOR_ERROR, "Error: You cannot exit so soon.");
}
return 1;
}