Labels on the Head Part 2
#1

The labels are now working perfectly fine, but this time the disappearing label passes on players.
For example, ID 0 doesn't have a label on his head, once he time out and relogs this problem will pass on ID 1 and so on.

I am not sure, I have tried someone's suggestion with the INVALID_3DTEXT_LABEL thing.
It is almost working except to this problem.

Here is my code.

PHP код:
new Text3D:Label[MAX_PLAYERS];
//OnGameModeInit
    
for(new x=0x<MAX_PLAYERSx++)
    {
        
Label[x] = Text3D:INVALID_3DTEXT_ID;
    }
//OnPlayerConnect
    
Label[playerid] = Create3DTextLabel("SWF", -10.00.00.07.00);
    
Attach3DTextLabelToPlayer(Label[playerid], playerid0.00.00.5);
//OnPlayerDisconnect
    
Delete3DTextLabel(Label[playerid]);
    
Label[playerid] = Text3D:INVALID_3DTEXT_ID;
//Other functions
Update3DTextLabelText(bahblah) - But i don't think this has something to do with it so yeah leave it like that 
Reply


Messages In This Thread
Labels on the Head Part 2 - by JaKe Elite - 26.03.2015, 11:43
Re: Labels on the Head Part 2 - by JaKe Elite - 26.03.2015, 16:11
Re: Labels on the Head Part 2 - by CalvinC - 26.03.2015, 16:13
Re : Labels on the Head Part 2 - by Dutheil - 26.03.2015, 16:49
Re: Labels on the Head Part 2 - by Pottus - 26.03.2015, 17:10
Re: Labels on the Head Part 2 - by JaKe Elite - 26.03.2015, 19:02
Re: Labels on the Head Part 2 - by Pottus - 26.03.2015, 21:05
Re: Labels on the Head Part 2 - by CalvinC - 26.03.2015, 21:09

Forum Jump:


Users browsing this thread: 7 Guest(s)