Problem with Delete3DTextLabel
#1

K i got pretty annoyed by this:
I did:

Top of script:
Код:
new Text3D:label[MAX_PLAYERS];
Command:
Код:
								  if (strcmp("/command", cmdtext, true, 10) == 0)
  {
	label[playerid] = Create3DTextLabel("Text",COLOR_BRIGHTRED,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);

		return 1;
	}
Then i did:

Код:
if (strcmp("/command2", cmdtext, true, 10) == 0)
  {
		Delete3DTextLabel(label[playerid]);
		return 1;
	   }
Now the problem is when player types /command2 the label still stays on player, it doesn't remove...

The thing i was trying to do is basically an admin duty system, like /command is like /adminduty
and it should say "on duty admin, dont attack bla bla" but when player types /command2 the label admin duty still stays above him
How to fix this?
Reply
#2

Bump, no answers
Reply
#3

pawn Код:
if (strcmp("/command2", cmdtext, true, 10) == 0)
  {
        Delete3DTextLabel(label);
                Update3DTextLabelText(label, COLOR_BRIGHTRED, "");
        return 1;
       }
No idea why it doesen't work for you but try this
Reply
#4

Thanks playbox12
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)