3DTextLabel question
#1

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
}
Reply
#2

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

dont think there is
Reply
#3

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!" );
}
Reply
#4

this is giving me a tag mismatch
Reply
#5

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

still get a tag mismatch
Reply
#7

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!" );
}
Reply
#8

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

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


Forum Jump:


Users browsing this thread: 3 Guest(s)