Scripting help [+REP everyday just help mee]
#1

OnPlayerSpawn
pawn Код:
PLabbelClass[playerid] = Create3DTextLabel(GetClassName(playerid),0xFFD700FF,30.0,40.0,50.0,40.0,0);
        Attach3DTextLabelToPlayer(PLabbelClass[playerid], playerid, 0, 0, 0.4);
OnPLayerUpdate
pawn Код:
Update3DTextLabelText(PLabbelClass[playerid], 0xFFFFFFFF, GetClassName(playerid));
When the 3D Label text updatet he create the new label and dont remove the label before!!
Soo he dont delete the lbabbel in onPlayerSpawn
And i need to Delete it every OnPlayerUpdate

ANYONEEEEEE HELP MEEEEEEEEE I WILL REP EVERY DAY JUST PLEASE
__________________
Reply
#2

Try it
pawn Код:
if (PLabbelClass[playerid])
    Delete3DTextLabel(PLabbelClass[playerid]);

PLabbelClass[playerid] = Create3DTextLabel(GetClassName(playerid),0xFFD700FF,30.0,40.0,50.0,40.0,0);
        Attach3DTextLabelToPlayer(PLabbelClass[playerid], playerid, 0, 0, 0.4);
Reply
#3

Where to add dhis?? On player spawn or onplayerupdate
Reply
#4

OnPlayerSpawn
Reply
#5

I added it OnPlayerUpdate and works with some next adding
Thanks

Can Give mee the id of "?" in mSelection
Example like this "i" 1239

Help mee pleasE
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)