SA-MP Forums Archive
3DTEXTLABEL - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 3DTEXTLABEL (/showthread.php?tid=528361)



3DTEXTLABEL - Last_Shadow - 27.07.2014

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);


Re: 3DTEXTLABEL - danish007 - 27.07.2014

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


Re: 3DTEXTLABEL - Last_Shadow - 27.07.2014

I didnt


Re: 3DTEXTLABEL - d3ll - 27.07.2014

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

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

VL[playerid] = Create3DTextLabel(playerid...);



Re: 3DTEXTLABEL - Last_Shadow - 27.07.2014

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


Re: 3DTEXTLABEL - Last_Shadow - 27.07.2014

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