Attach 3D text
#1

I made command /title in dialog and it's showing your text above your head...It works fine, but when i do /title again it writes new text over old one. I don't know how to delete that old text
Код:
if(response)
{
			new string2[128];
            new Float:x,Float:y,Float:z;
            new Text3D:label = Create3DTextLabel(inputtext, textc[playerid],x,y,z, 40.0, 0, 0);
            GetPlayerPos(playerid,x,y,z); 
			format(string2, sizeof(string2), "%s", inputtext);
            SendClientMessage(playerid,textc[playerid], string2);
            Attach3DTextLabelToPlayer(label,playerid,0.0, 0.0, 0.7);

}
Reply
#2

try this
pawn Код:
if(response)
{
        new string2[128];
            new Float:x,Float:y,Float:z;
            new Text3D:label = Create3DTextLabel(inputtext, textc[playerid],x,y,z, 40.0, 0, 0);
            GetPlayerPos(playerid,x,y,z);
            format(string2, sizeof(string2), "%s", inputtext);
            SendClientMessage(playerid,textc[playerid], string2);
            Attach3DTextLabelToPlayer(label,playerid,0.0, 0.0, 0.7);
}
else
{
            DeletePlayer3DTextLabel(playerid, PlayerText3D:label);

}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)