[HELP] Text3D:Create3DTextLabel - 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: [HELP] Text3D:Create3DTextLabel (
/showthread.php?tid=404748)
[HELP] Text3D:Create3DTextLabel -
Scofield62 - 04.01.2013
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(playerid, params[])
{
dtext = Create3DTextLabel("jajaj", 0xFFFFFFFF, 0.0, 0.0, 0.0, 50.0, 0, 0);
Attach3DTextLabelToVehicle(dtext, 3, 0.0, 0.0, 1.5);
new juj[5];
format(juj,sizeof(juj),"%s",dtext); // From here i got the error -> TAG MISMATCH
SendClientMessage(playerid,0xFFFFFFAA,juj);
return 1;
}
Re: [HELP] Text3D:Create3DTextLabel -
JavoDiaz - 04.01.2013
Because dtext is the ID of the Label, it isn't a string, instead of dtext you should put "jajaj".
Re: [HELP] Text3D:Create3DTextLabel -
Faisal_khan - 04.01.2013
dtext must be a string. Because you cannot send a Create3DTextLabel on SendClienMessage.
Re: [HELP] Text3D:Create3DTextLabel -
Scofield62 - 04.01.2013
I want to send the ID of the 3Dtextlabel, so how can i get the id of the 3dtextlabel?
Re: [HELP] Text3D:Create3DTextLabel -
Scofield62 - 04.01.2013
Somebody PLS HELP!!
Re: [HELP] Text3D:Create3DTextLabel -
FL3GM4 - 04.01.2013
Use this:
Код:
dtext= CreatePlayer3DTextLabel(playerid,"jajaj",0x008080FF,X,Y,Z,40.0);
Re: [HELP] Text3D:Create3DTextLabel -
Scofield62 - 04.01.2013
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.
Re: [HELP] Text3D:Create3DTextLabel -
Scofield62 - 04.01.2013
How can i put the dtext value to a string or value or sg like that?