Trailers
#2

I think something like this might work. Still untested.

pawn Код:
new trailer = GetVehicleTrailer(GetPlayerVehicleID(playerid));
new trailercount;

if(trailer)
{
    trailercount = 1;

    while((trailer = GetVehicleTrailer(trailer)))
    {
        trailercount++;
    }
}

printf("There are %d trailers.", trailercount);
Reply


Messages In This Thread
Trailers - by jop9888 - 17.06.2012, 12:48
Re: Trailers - by Vince - 17.06.2012, 12:58
Re: Trailers - by jop9888 - 17.06.2012, 21:56
Re: Trailers - by SuperViper - 18.06.2012, 02:24
Re: Trailers - by jop9888 - 18.06.2012, 22:26

Forum Jump:


Users browsing this thread: 3 Guest(s)