SA-MP Forums Archive
3DTextLabel question - 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 question (/showthread.php?tid=425512)



3DTextLabel question[solved] - horsemeat - 25.03.2013

can I check to see if a 3DTextlabel exists example

Код:
new Text3D:label;
//...later

label = Create3DTextLabel("text",GREEN,x,y,z,25.0,0,0)


//later


//is there a command that looks some what like this
if(3DTextLabelExists(label))
Solved


The Proper code to Check is

Код:
new Text3D:label;
//later
label = Create3DTextLabel("text",GREEN,x,y,z,25.0,0,0)
//later
if(Text3D:label = Text3D:INVALID_3DTEXT_ID)
{
       //code
}



Re: 3DTextLabel question - kamzaf - 25.03.2013

https://sampwiki.blast.hk/wiki/Category:...3D_Text_Labels

dont think there is


Re: 3DTextLabel question - greentarch - 25.03.2013

I found this at a_samp
pawn Код:
#define INVALID_3DTEXT_ID                       (0xFFFF)
Maybe you can try to check it like this
pawn Код:
if ( label == INVALID_3DTEXT_ID ) // The label is an invalid one.
{
    SendClientMessage( playerid, -1, "SERVER: That label does not exist!" );
}



Re: 3DTextLabel question - horsemeat - 25.03.2013

this is giving me a tag mismatch


Re: 3DTextLabel question - Luis- - 25.03.2013

Код:
if ( Text3D:label== INVALID_3DTEXT_ID ) // The label is an invalid one.
{
    SendClientMessage( playerid, -1, "SERVER: That label does not exist!" );
}
Try this.


Re: 3DTextLabel question - horsemeat - 27.03.2013

still get a tag mismatch


Re: 3DTextLabel question - horsemeat - 27.03.2013

Quote:
Originally Posted by -Luis
Посмотреть сообщение
Код:
if ( Text3D:label== INVALID_3DTEXT_ID ) // The label is an invalid one.
{
    SendClientMessage( playerid, -1, "SERVER: That label does not exist!" );
}
Try this.
I look around and The Code is this

Код:
if(Text3D:label ==Text3D:INVALID_3DTEXT_ID)
{
      SendClientMessage( playerid, -1, "SERVER: That label does not exist!" );
}



Re: 3DTextLabel question - Pottus - 27.03.2013

Just remember 3D Labels are buggy when you start attaching them to players, vehicles etc.


Re: 3DTextLabel question - horsemeat - 14.04.2013

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
Just remember 3D Labels are buggy when you start attaching them to players, vehicles etc.
alright I will