01.02.2014, 19:03
Sure. I tested it before posting it and it printed the correct zone. It'd be good if you also check about the vehicle whether or not is valid.
Add it under #define and in the GetVehicleZone function at the top (before declaration) add:
If the vehicle does not exist, then there isn't a reason to loop and search for a zone.
What?
pawn Код:
native IsValidVehicle(vehicleid);
pawn Код:
if (!IsValidVehicle(vehicleid)) return -1;
What?