how to set 3d text label to all card?
#1

hello
so i set 3d text label for some cars , i have over 300 cars and i need a code that attachs 3d text label for all the cars in my mode.

thanks
Reply
#2

Loop thought all vehicles then
for(new i=0;i<MAX_VEHICLES;i++){
//You code here
}
Reply
#3

Quote:
Originally Posted by Eoussama
Посмотреть сообщение
Loop thought all vehicles then
for(new i=0;i<MAX_VEHICLES;i++){
//You code here
}
http://pastebin.com/bWrm14CU

what did i do wrong? thanks.
Reply
#4

It should be like that

PHP код:
for(new i=0;i<MAX_VEHICLES;i++){
    
text1 = Create3DTextLabel( "шлб цйбешй", 0xFF0000AA, 0.0, 0.0,0.0, 50.0, 0, 1 );
    
Attach3DTextLabelToVehicle( text1, i, 0.0, 0.0, 1.0);
} 
Reply
#5

Quote:
Originally Posted by Eoussama
Посмотреть сообщение
It should be like that

PHP код:
for(new i=0;i<MAX_VEHICLES;i++){
    
text1 = Create3DTextLabel( "шлб цйбешй", 0xFF0000AA, 0.0, 0.0,0.0, 50.0, 0, 1 );
    
Attach3DTextLabelToVehicle( text1, i, 0.0, 0.0, 1.0);
} 
doesn't work , not sure why.
that's on the top of the mode
Код:
new pcar1, Text3D:text1;
if that matter.
Reply
#6

up..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)