Deletinfg a 3D Text Label - 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: Deletinfg a 3D Text Label (
/showthread.php?tid=366569)
Deletinfg a 3D Text Label - Riddy - 07.08.2012
pawn Код:
Create3DTextLabel(string2,COLOR_LIGHTRED,deadx[playerid],deady[playerid],deadz[playerid],40.0,0);
How the firetruck can I delete a 3d text label when I dont have a ID to do such a thing, so can anyone identify this text labels ID?
Re: Deletinfg a 3D Text Label -
FalconX - 07.08.2012
Quote:
Originally Posted by Riddy
pawn Код:
Create3DTextLabel(string2,COLOR_LIGHTRED,deadx[playerid],deady[playerid],deadz[playerid],40.0,0);
How the firetruck can I delete a 3d text label when I dont have a ID to do such a thing, so can anyone identify this text labels ID?
|
First make a global var like the following:-
pawn Код:
new Text3d:n_bMyText; // global 3d text var at top
then create the 3d text label like this:
pawn Код:
n_bMyText = Create3DTextLabel( string2, COLOR_LIGHTRED, deadx[ playerid ], deady[ playerid ], deadz[ playerid ], 40.0, 0 ); // this is n_bMyText is your id
then for deleting use the following:
pawn Код:
Delete3DtextLabel( n_bMyText ); // now deleting it :))
Hope this helps
-FalconX
Re: Deletinfg a 3D Text Label -
leonardo1434 - 07.08.2012
@edit : Already posted above.