Quote:
Originally Posted by randomkid88
Something like this:
pawn Код:
stock IsABike(vid) { new modelid = GetVehicleModel(vid); if(modelid == 509||modelid ==510||modelid ==581||modelid ==522||modelid ==521||modelid ==523||modelid ==586||modelid ==481||modelid ==462||modelid ==448||modelid ==461||modelid ==463||modelid ==468||modelid ==471) return 1; else return 0; }
To use:
pawn Код:
if(IsABike(vid)) //checks to see if the given vehicle ID is a bike
|
Just when I was about to post my one with errors xD
however from your one I get
pawn Код:
error 017: undefined symbol "vid"
when put on engine choice
Thanks btw ;]