ispassenger boolean?
#1

is the ispassenger variable from onplayer enter/exit vehicle a boolean? if so, y dont this work? CODE:

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(vehicleid == ccar)
    {
        if(!ispassenger = true)
        {
            new string[64], name[MAX_PLAYER_NAME];
            GetPlayerName(playerid, name, sizeof(name));
            format(string, sizeof(string), "%s has taken the chasecar!", name);
            SendClientMessageToAll(COLOR_RED, string);
        }
    }
    return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(vehicleid == ccar)
    {
        if(!ispassenger = true)
        {
            new string[64], name[MAX_PLAYER_NAME];
            GetPlayerName(playerid, name, sizeof(name));
            format(string, sizeof(string), "%s has left the chasecar!", name);
            SendClientMessageToAll(COLOR_RED, string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
ispassenger boolean? - by sciman001 - 27.03.2011, 19:56
Re: ispassenger boolean? - by mprofitt - 27.03.2011, 20:07
Re: ispassenger boolean? - by mprofitt - 27.03.2011, 20:08
Re: ispassenger boolean? - by Mike Garber - 27.03.2011, 20:09
Re: ispassenger boolean? - by sciman001 - 27.03.2011, 20:17
Re: ispassenger boolean? - by Mike Garber - 27.03.2011, 21:00

Forum Jump:


Users browsing this thread: 1 Guest(s)