11.06.2011, 16:58
Try This. I think you're creating the same textdraw and then attaching it to different vehicles, so its never on the same vehicle.
pawn Код:
//Outside of your function:
new Text3D: WarLabel[MAX_WAR_VEHICLES]; //You would have to count how many vehicles you have and define it,
//or you can use MAX_VEHICLES too.
for ( new i; i < MAX_VEHICLES; i ++ )
{
switch ( GetVehicleModel( i ) )
{
case 432,447,520,425:
{
WarLabel[i] = Create3DTextLabel( "War Vehicle", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( WarLabel[i], i, 0.0, 0.0, 2.0);
}
}
}