[FilterScript] Taxi Job
#11

PHP Code:
IsPlayerInTaxi(playerid)
{
    if(!
IsPlayerInAnyVehicle(playerid)) return false;
    if(
GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) return false;
    if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 420 || 438 && GetPlayerVehicleSeat(playerid) == 0) return true;
    return 
true;

This is just wrong, if a player is driving a vehicle that isn\'t a taxi it will return true; because you set it to. it could\'ve been much more simple:
PHP Code:
IsPlayerInTaxi(playerid)
{
    return (
GetVehicleModel(GetPlayerVehicleID(playerid)) == 420 || 438 && GetPlayerVehicleSeat(playerid) == 0)

It has many random snippets which i can\'t comprehend fully anyways so yeah.
Reply


Messages In This Thread
Taxi Job - by brauf - 15.08.2018, 11:56
Re: Taxi Job - by ExodusxD - 15.08.2018, 12:54
Re: Taxi Job - by Hassanking2 - 15.08.2018, 12:57
Re: Taxi Job - by brauf - 15.08.2018, 15:31
Re: Taxi Job - by Hassanking2 - 15.08.2018, 19:55
Re: Taxi Job - by GaMiX - 15.08.2018, 23:17
Re: Taxi Job - by Raayzeck - 17.08.2018, 03:34
Re: Taxi Job - by Vizi10 - 17.08.2018, 10:25
Re: Taxi Job - by Mitic0 - 17.08.2018, 14:47
Re: Taxi Job - by RxErT - 17.08.2018, 15:35
Re: Taxi Job - by RogueDrifter - 18.08.2018, 19:23

Forum Jump:


Users browsing this thread: 2 Guest(s)