[FilterScript] [FS] aeroplane ejection system
#2

Uh what a complicated code
pawn Код:
stock IsAPlane(carid)
{
  new Planes[] = { 520, 476, 593, 553, 513, 512, 577, 592, 511, 460, 519 };
  for(new i = 0; i < sizeof(Planes); i++)
  {
    if(GetVehicleModel(carid) == Planes[i]) return 1;
  }
  return 0;
}
Isn't this simplier?
pawn Код:
stock IsAPlane(carid)
{
  switch(GetVehicleModel(carid))
  {
    case 520, 476, 593, 553, 513, 512, 577, 592, 511, 460, 519: return 1;
  }
  return 0;
}
Reply


Messages In This Thread
[FS] aeroplane ejection system - by mister_ic3 - 12.01.2010, 16:47
Re: [FS] aeroplane ejection system - by Sergei - 12.01.2010, 16:52
Re: [FS] aeroplane ejection system - by mister_ic3 - 12.01.2010, 16:57
Re: [FS] aeroplane ejection system - by Sergei - 12.01.2010, 17:15
Re: [FS] aeroplane ejection system - by mister_ic3 - 12.01.2010, 17:26
Re: [FS] aeroplane ejection system - by MaykoX - 13.01.2010, 05:09
Re: [FS] aeroplane ejection system - by arjunaryas - 15.01.2010, 15:13
Re: [FS] aeroplane ejection system - by mister_ic3 - 15.01.2010, 16:05
Re: [FS] aeroplane ejection system - by ViruZZzZ_ChiLLL - 15.01.2010, 20:30
Re: [FS] aeroplane ejection system - by mister_ic3 - 24.02.2010, 16:26

Forum Jump:


Users browsing this thread: 2 Guest(s)