[ HELP ] 3DText for Vehicle
#1

Hy, I have a problem with 3Dtext for vehicles! There is my VEH system for COPCar!:

Код:
new Ambulance[5]

    for(new i = 0; i < sizeof(Ambulance); i++)
	{
    MD = CreateDynamic3DTextLabel("[ HITNA POMOC ]\ncena lecenja od 50$ do 500$",0xFFFFFF, 0,0,0, 20.0);
    Attach3DTextLabelToVehicle( MD, Ambulance[i], 0.0, 0.0, 0.0);
    }

	Ambulance[0] = AddStaticVehicleEx(416,1177.35,-1339.24,13.66,269.58, -1, -1, 30000); // Ambulance 52
	Ambulance[1] = AddStaticVehicleEx(416,1176.98,-1308.65,13.62,269.33, -1, -1, 30000); // Ambulance 53
	Ambulance[2] = AddStaticVehicleEx(416,1189.87,-1357.14,13.21,180.78, -1, -1, 30000); // Ambulance 54
	Ambulance[3] = AddStaticVehicleEx(487,1211.58,-1324.46,13.21,0.42, 1, 3, 30000); // Medic chopper 55
And the 3dtext will not show on the car?? WHY? Can you help me!
Reply
#2

Use Attach3DTextLabelToVehicle after AddStaticVehicleEx
Reply
#3

Can you give me an example!
Reply
#4

pawn Код:
//Top
new Ambulance[4];

//OnGameModeInit
Ambulance[0] = AddStaticVehicleEx(416,1177.35,-1339.24,13.66,269.58, -1, -1, 30000); // Ambulance 52
Ambulance[1] = AddStaticVehicleEx(416,1176.98,-1308.65,13.62,269.33, -1, -1, 30000); // Ambulance 53
Ambulance[2] = AddStaticVehicleEx(416,1189.87,-1357.14,13.21,180.78, -1, -1, 30000); // Ambulance 54
Ambulance[3] = AddStaticVehicleEx(487,1211.58,-1324.46,13.21,0.42, 1, 3, 30000); // Medic chopper 55

MD = CreateDynamic3DTextLabel("[ HITNA POMOC ]\ncena lecenja od 50$ do 500$",0xFFFFFF, 0,0,0, 20.0);

for(new i; i < sizeof(Ambulance); i++)
    Attach3DTextLabelToVehicle( MD, Ambulance[i], 0.0, 0.0, 0.0);



//See CreateDynamic3DTextLabelEx
Reply
#5

Okey, thanks I will try and tell you if it will be ok
Reply
#6

No ViniBorn, its wasnt working Can anybody help?
Reply
#7

How you declared 'MD' ?

pawn Код:
new Text3D:MD;
Reply
#8

Yes: new Text3D:MD;

And still not working?
Reply
#9

Anybody help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)