3DText label
#1

So I made a global variable.. new 3DTexteadLabel[MAX_PLAYERS];
I created a new 3DText label and attached it to the player's head so everyone could see it.
There's one little problem, when I destroy someone elses DeadLabel it destroys everyone's label. My code is completely fine.

Creating the label:
pawn Код:
DeadLabel[playerid] = Create3DTextLabel("(( This player is dead ))", -1, 0.0, 0.0, 0.0, 7.0, 0);
Attach3DTextLabelToPlayer(DeadLabel[playerid], playerid, 0.0, 0.0, 0.5);
Destroying the label:
pawn Код:
Delete3DTextLabel(DeadLabel[playerid]);
Reply


Messages In This Thread
3DText label - by PaulDinam - 09.01.2015, 22:32
Re: 3DText label - by Divergent - 10.01.2015, 01:57
Re: 3DText label - by Wizzy951 - 10.01.2015, 02:31
Re: 3DText label - by iiNzTicTx - 10.01.2015, 04:06

Forum Jump:


Users browsing this thread: 2 Guest(s)