30.04.2012, 05:46
Try this:
Код:
for(new i = 0; i < MAX_VEHICLES; i++) { vehicleid = INVALID_VEHICLE_ID; GetVehiclePos(i, hX, hY, hZ); if(IsPlayerInRangeOfPoint(playerid, 4, hX, hY, hZ)) { vehicleid = i; //carcount++; (God knows what this was doing) return vehicleid; } return vehicleid; }