textlabel problem
#2

pawn Код:
for ( new i; i < MAX_VEHICLES; i ++ )
  {
       switch ( GetVehicleModel( i ) )
       {
           case 432,447,520,425:
           {
               new Text3D: vehicle3Dtext;
               vehicle3Dtext = Create3DTextLabel( "War Vehicle", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
               Attach3DTextLabelToVehicle( vehicle3Dtext, i, 0.0, 0.0, 2.0);
           }
       }
   }
Since you are looping through all the vehicles, using "i" as your variable for vehicleid, just use "i" wherever you would normally use vehicle id. You didn't need to declare a new variable for that
Reply


Messages In This Thread
textlabel problem - by Face9000 - 10.06.2011, 13:10
Re: textlabel problem - by randomkid88 - 10.06.2011, 14:38
Re: textlabel problem - by Face9000 - 10.06.2011, 14:48
Re: textlabel problem - by Face9000 - 11.06.2011, 08:41
Re: textlabel problem - by DRIFT_HUNTER - 11.06.2011, 09:09
Re: textlabel problem - by Face9000 - 11.06.2011, 10:16
Re: textlabel problem - by randomkid88 - 11.06.2011, 16:58
Re: textlabel problem - by Face9000 - 11.06.2011, 17:14
Re: textlabel problem - by randomkid88 - 11.06.2011, 18:22

Forum Jump:


Users browsing this thread: 5 Guest(s)