Is there a way - rep ++ question
#6

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;
}
Reply


Messages In This Thread
Is there a way - rep ++ question - by buburuzu19 - 15.12.2014, 17:51
Re: Is there a way - rep ++ question - by Kruno88 - 15.12.2014, 17:52
Re: Is there a way - rep ++ question - by Raweresh - 15.12.2014, 17:56
Re: Is there a way - rep ++ question - by buburuzu19 - 15.12.2014, 18:27
Re: Is there a way - rep ++ question - by Abagail - 15.12.2014, 18:40
Re: Is there a way - rep ++ question - by Raweresh - 15.12.2014, 19:21
Re: Is there a way - rep ++ question - by buburuzu19 - 16.12.2014, 06:59
Re: Is there a way - rep ++ question - by buburuzu19 - 16.12.2014, 07:03
Re: Is there a way - rep ++ question - by Raweresh - 16.12.2014, 07:06
Re: Is there a way - rep ++ question - by buburuzu19 - 16.12.2014, 07:17

Forum Jump:


Users browsing this thread: 3 Guest(s)