SA-MP Forums Archive
3D Text Labbel Update - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 3D Text Labbel Update (/showthread.php?tid=551513)



3D Text Labbel Update - arlindi - 19.12.2014

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


Re: 3D Text Labbel Update - arlindi - 19.12.2014

Can anyOne fix this please
Sorry For Bump


Re: 3D Text Labbel Update - Hessu - 19.12.2014

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);



Re: 3D Text Labbel Update - arlindi - 19.12.2014

Still Not work....


Re: 3D Text Labbel Update - arlindi - 19.12.2014

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


Re: 3D Text Labbel Update - 1fret - 19.12.2014

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



Re: 3D Text Labbel Update - arlindi - 19.12.2014

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


Re: 3D Text Labbel Update - 1fret - 19.12.2014

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


Re: 3D Text Labbel Update - arlindi - 19.12.2014

I dont want to delete label i want to update it


Re: 3D Text Labbel Update - 1fret - 19.12.2014

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

Delete3DTextLabel(PLabbelClass[playerid]);