Using arrays?
#8

ONEV is called when player press enter button so GetPlayerVehicleID didnt works? xd

If you are using static vehicles, simply way

pawn Код:
new CGLSVehicles[23]; // is from 0 to 22

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(CGLSVehicles[0] <= vehicleid <= CGLSVehicles[22])
    {
        // do something
    }
    return 1;
}
if not, use Cypress code
Reply


Messages In This Thread
Using arrays? - by arjanforgames - 19.08.2013, 09:50
Re: Using arrays? - by RajatPawar - 19.08.2013, 09:54
Re: Using arrays? - by Ash. - 19.08.2013, 09:55
Re: Using arrays? - by Pottus - 19.08.2013, 13:23
Re: Using arrays? - by Cypress - 19.08.2013, 13:30
Re: Using arrays? - by Edix - 19.08.2013, 14:37
Re: Using arrays? - by Vince - 19.08.2013, 15:40
Re: Using arrays? - by Jefff - 19.08.2013, 16:56
Re: Using arrays? - by Ash. - 21.08.2013, 23:58

Forum Jump:


Users browsing this thread: 5 Guest(s)