3Dtextlabel Bug +rep
#1

I am trying to make a tag which will say VIP over a VIP's Head. It works but it shows over other peoples heads sometimes even if they are not VIP.

Код:
public OnPlayerSpawn(playerid)
{
    if(AccInfo[playerid][pVip] >= 1)
	{
        PlayerLabel[playerid] = Create3DTextLabel("VIP",0xF97804FF,30.0,40.0,50.0,30,-1,1);
	Attach3DTextLabelToPlayer(PlayerLabel[playerid], playerid, 0.0, 0.0, 0.3);
	}
This is my code which is at the top of OnPlayerSpawn for LuxAdmin.
It compiles with 2 errors.. I don't know if they change anything.
Код:
C:\Users\\filterscripts\LuxAdmin.pwn(891) : warning 213: tag mismatch
C:\Users\\filterscripts\LuxAdmin.pwn(892) : warning 213: tag mismatch
Thats all thats in the script at the top of my script ofc is the
Quote:

PlayerLabel[MAX_PLAYERS];

I will be greatful for your help!
Reply
#2

Don't forget to delete the label when they disconnect! thats why the VIP player disconnect, the label stays on that player and then non-VIP player comes on and he has got VIP label above himself.

Try to change
Код:
PlayerLabel[MAX_PLAYERS];
to:
Код:
new Text3D: PlayerLabel[MAX_PLAYERS];
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)