What to use to compare to multiple posibilities?
#3

Try this.
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    //get vehicle id
    new vid;
    vid = GetVehicleModel(vehicleid);
    //check for factions
    for(new i = 0; i <= 7; i++)
    {
        if(vehicleid == LSPDvehicles[i])
        {
            SendClientMessage(playerid, -1, "police car");
        }
    }
    return 1;
}
You are telling it to check LSPDvehicles at the cell number "vid".
Reply


Messages In This Thread
What to use to compare to multiple posibilities? - by Nathan_Taylor - 13.03.2013, 15:29
Re: What to use to compare to multiple posibilities? - by Patrick - 13.03.2013, 15:33
Re: What to use to compare to multiple posibilities? - by Denying - 13.03.2013, 15:34
Re: What to use to compare to multiple posibilities? - by Patrick - 13.03.2013, 15:37
Re: What to use to compare to multiple posibilities? - by Nathan_Taylor - 13.03.2013, 15:37
Re: What to use to compare to multiple posibilities? - by Denying - 13.03.2013, 15:41
Re: What to use to compare to multiple posibilities? - by RajatPawar - 13.03.2013, 16:10

Forum Jump:


Users browsing this thread: 1 Guest(s)