3D Text
#1

new string[256];
format(string,sizeof(string),"Owner:%s",CarInfo[c][Owner]);
CarInfo[c][Text] = Create3DTextLabel(string, 0xFF0000AA, 0.00,0.00,0.00, 100.0, 0, 1 );
Attach3DTextLabelToVehicle(CarInfo[c][Text], c, 0.0, 0.0, 2.0 );
3d text not show ...!
Reply
#2

Remove [c] from CarInfo[c][Text]. Does it work?
Reply
#3

TRY ?



PHP код:
new string[256];
format(string,sizeof(string), "Owner:%s" ,CarInfo[Owner]);
CarInfo[Text] = Create3DTextLabel(string0xFF0000AA0.00,0.00,0.00100.00);
Attach3DTextLabelToVehicle(CarInfo[Text]," VEHICLE ID HERE ?" 0.00.02.0 ); 
Reply
#4

Quote:
Originally Posted by Jacket
Посмотреть сообщение
Remove [c] from CarInfo[c][Text]. Does it work?
if i remove [c]
Код:
ambiguous constant; tag override is required (symbol "Owner")
D:\SAMP Servers and Tools\Freedom (Engine Ultra)\Freedom (Engine Ultra)\gamemodes\gm.pwn(2748) : error 091: ambiguous constant; tag override is required (symbol "Text")
D:\SAMP Servers and Tools\Freedom (Engine Ultra)\Freedom (Engine Ultra)\gamemodes\gm.pwn(2748) : error 033: array must be indexed (variable "CarInfo")
D:\SAMP Servers and Tools\Freedom (Engine Ultra)\Freedom (Engine Ultra)\gamemodes\gm.pwn(2749) : error 091: ambiguous constant; tag override is required (symbol "Text")
Reply
#5

Your array might start with the value of zero and vehicles start with 1 (index) - so instead of
pawn Код:
Attach3DTextLabelToVehicle(CarInfo[c][Text], c, 0.0, 0.0, 2.0 );
Try:
pawn Код:
Attach3DTextLabelToVehicle(CarInfo[c][Text], c+1, 0.0, 0.0, 2.0 );

I hope I helped any feedback is appreciated!
Reply
#6

Quote:
Originally Posted by Stanford
Посмотреть сообщение
Your array might start with the value of zero and vehicles start with 1 (index) - so instead of
pawn Код:
Attach3DTextLabelToVehicle(CarInfo[c][Text], c, 0.0, 0.0, 2.0 );
Try:
pawn Код:
Attach3DTextLabelToVehicle(CarInfo[c][Text], c+1, 0.0, 0.0, 2.0 );

I hope I helped any feedback is appreciated!
not working,
Код:
CarInfo[c][CarID] = CreateVehicle(CarInfo[c][Model], CarInfo[c][Vposx], CarInfo[c][Vposy], CarInfo[c][Vposz], CarInfo[c][Vposa], CarInfo[c][Color1], CarInfo[c][Color2], -1);
I need to attach 3d text label for vehicles (CarInfo[c][CarID] )
i try:
Код:
Attach3DTextLabelToVehicle(CarInfo[c][Text], CarInfo[c][CarID], 0.0, 0.0, 2.0 );
But not working

I fixed IT!Thanks guys for assistance!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)