3Dtextlabel Bug +rep - 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: 3Dtextlabel Bug +rep (
/showthread.php?tid=364967)
3Dtextlabel Bug +rep -
KingyKings - 01.08.2012
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!
Re: 3Dtextlabel Bug +rep -
Killer#Mummy - 01.08.2012
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];