3DTEXTLABEL
#1

I have one problem
I made that when player create car it will attach 3dtextlabel to the car. all works but when player get out of the car its disappear
VC[playerid] = CreateVehicle(dini_Int(file,"Vmodel"), 0.0, 0.0, 0.0, 0.0, -1, -1, 60);
format(Vehicle_F,sizeof(Vehicle_F),"{CCFF66}%s {FF0066}:дбтмйн щм дшлб", getname[playerid]);
VC[playerid] = Create3DTextLabel(Vehicle_F, 0xFFFF00FF,0,0,0,20.0,0);
Attach3DTextLabelToVehicle(VC[playerid],VC[playerid],0.0,0.0,0.0);
Reply
#2

make sure u haven't added any destroying function when player exit vehicle?
Reply
#3

I didnt
Reply
#4

Your using the same variable for creating a vehicle and a 3DTextLabel :/

pawn Код:
new Text3D:VL[MAX_PLAYERS];

VL[playerid] = Create3DTextLabel(playerid...);
Reply
#5

i know easy way you can help
please give me a simple command that will make my current car [the car im in] and put "sample" 3dtextlabel
Reply
#6

Text3D:vehicle2_Text3D[MAX_VEHICLES];
new Caridd[MAX_PLAYERS];

if(!strcmp(cmdtext, "/test", true))
{
new Vehicle_F[50];
Caridd[playerid] = GetPlayerVehicleID(playerid);
format(Vehicle_F, sizeof(Vehicle_F), "{CCFF66}%s {FF0066}:дбтмйн щм дшлб", getname[playerid]);
vehicle2_Text3D[Caridd[playerid]] = Create3DTextLabel(Vehicle_F, 0xFFFF00FF, 0, 0, 0, 30, 0, 0);
Attach3DTextLabelToVehicle(vehicle2_Text3D[Caridd[playerid]], Caridd[playerid], 0, 0, 1);

}

i did this and it works but still when i get out of the car it disappear
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)