[HELP] Text3D:Create3DTextLabel
#1

Hi all! i need some help about i want to Say in to the Public chat the id of the 3DTextLabel but it always say TAG MISMATCH

Here is the Code:
PHP код:
new Text3D:dtext;
CMD:jajaj(playeridparams[])
{
    
dtext Create3DTextLabel("jajaj"0xFFFFFFFF0.00.00.050.000);
    
Attach3DTextLabelToVehicle(dtext30.00.01.5);
    new 
juj[5];
    
format(juj,sizeof(juj),"%s",dtext); // From here i got the error -> TAG MISMATCH
        
SendClientMessage(playerid,0xFFFFFFAA,juj);
    return 
1;

Reply
#2

Because dtext is the ID of the Label, it isn't a string, instead of dtext you should put "jajaj".
Reply
#3

dtext must be a string. Because you cannot send a Create3DTextLabel on SendClienMessage.
Reply
#4

I want to send the ID of the 3Dtextlabel, so how can i get the id of the 3dtextlabel?
Reply
#5

Somebody PLS HELP!!
Reply
#6

Use this:

Код:
dtext= CreatePlayer3DTextLabel(playerid,"jajaj",0x008080FF,X,Y,Z,40.0);
Reply
#7

Quote:
Originally Posted by FL3GM4
Посмотреть сообщение
Use this:

Код:
dtext= CreatePlayer3DTextLabel(playerid,"jajaj",0x008080FF,X,Y,Z,40.0);
And what will store in dtext? I want to get data from dtext so i want to store the dtext into a string and printf(string), do u understand me? I want to get the id of TEXT label.
Reply
#8

How can i put the dtext value to a string or value or sg like that?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)