17.06.2012, 12:58
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);