3D Text Labbel Update
#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
Reply
#2

Can anyOne fix this please
Sorry For Bump
Reply
#3

Try to remove it and create it again :

Код:
Delete3DTextLabel(PLabbelClass[playerid]);
PLabbelClass[playerid] = Create3DTextLabel(GetClassName(playerid),0xFFD700FF,30.0,40.0,50.0,40.0,0);
Reply
#4

Still Not work....
Reply
#5

Bump! AnyonE please sorry for bump but i need it .
Reply
#6

Try this not sure if that what you want to do .

pawn Код:
Delete3DTextLabel(PLabbelClass[playerid]);//put that at onplayerspawn
PLabbelClass[playerid] = Create3DTextLabel(GetClassName(playerid),0xFFD700FF,30.0,40.0,50.0,40.0,0);//on playerupdate
Reply
#7

I have a class system and when player spawned he show the dialog And the GetName Class is the name of classes
And need to update it when he get the new class
Reply
#8

Did you put the onplayerupdate(); at on player spawn. And put this ther too but add this first
Delete3DTextLabel(PLabbelClass[playerid]);
Reply
#9

I dont want to delete label i want to update it
Reply
#10

Well you have to delete before updating so put this at onplayerupdat

Delete3DTextLabel(PLabbelClass[playerid]);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)