OnPlayerEnterVehicle
#5

Too much hassle, and one too large array. This will be much more resource efficient:
pawn Код:
// Top
new
    MaxStaticVehicles = 0;

// GamemodeInit
MaxStaticVehicles = AddStaticVehicle(...) // this will be the very LAST STATIC VEHICLE

// Anywhere
stock IsStaticVehicle(vehicleid)
    return (vehicleid <= MaxStaticVehicles) ? true : false;
Reply


Messages In This Thread
OnPlayerEnterVehicle - by DokerJr - 18.02.2011, 21:08
Re: OnPlayerEnterVehicle - by OKStyle - 19.02.2011, 03:30
Re: OnPlayerEnterVehicle - by DokerJr - 19.02.2011, 21:20
Re: OnPlayerEnterVehicle - by PowerPC603 - 19.02.2011, 22:01
Re: OnPlayerEnterVehicle - by Vince - 19.02.2011, 22:18
Re: OnPlayerEnterVehicle - by DokerJr - 20.02.2011, 13:44
Re: OnPlayerEnterVehicle - by rjjj - 20.02.2011, 14:26

Forum Jump:


Users browsing this thread: 1 Guest(s)