15.12.2014, 19:21
I think I have better way to do it:
Код:
public OnTrailerUpdate(playerid, vehicleid) { for(new x, y = MAX_VEHICLES; x < y; x++) { if(IsTrailerAttachedToVehicle(x) && GetVehicleTrailer(x) == vehicleid)) { //trailer is attached return 1; } } //trailer not attached return 1; }