12.01.2010, 16:52
Uh what a complicated code
Isn't this simplier?
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;
}
pawn Код:
stock IsAPlane(carid)
{
switch(GetVehicleModel(carid))
{
case 520, 476, 593, 553, 513, 512, 577, 592, 511, 460, 519: return 1;
}
return 0;
}