[HELP] 3D Textlabel - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] 3D Textlabel (
/showthread.php?tid=208675)
[HELP] 3D Textlabel -
joeri55 - 09.01.2011
Dear users,
I've got a problem with my 3D Textlabel.
When the people connect it's fine but after some hours their textlabels get all dizzy for some strange reason. Does anyone knows the reason of this?
This is the code
Код:
new Text3D:PrisonNum[MAX_PLAYERS];
new pnumbstring[32];
if (Player[playerid][Group] == 0)
{
format(pnumbstring, sizeof(pnumbstring), "Prisoner: %d", Player[playerid][PhoneN]);
PrisonNum[playerid] = Create3DTextLabel(pnumbstring, 0xFFFFFFAA, 30.0, 50.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(PrisonNum[playerid], playerid, -0.5, -0.5, -0.1);
}
if (Player[playerid][Group] > 2)
{
format(pnumbstring, sizeof(pnumbstring), "Prisoner: %d", Player[playerid][PhoneN]);
PrisonNum[playerid] = Create3DTextLabel(pnumbstring, 0xFFFFFFAA, 30.0, 50.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(PrisonNum[playerid], playerid, -0.5, -0.5, -0.1);
}
But this happends?:
Anyone got a solution for this?
Re: [HELP] 3D Textlabel -
ToPhrESH - 09.01.2011
Do you have the script under OnPlayerSpawn()?
Re: [HELP] 3D Textlabel -
TheYoungCapone - 09.01.2011
what do you mean dizzy?
Re: [HELP] 3D Textlabel -
joeri55 - 09.01.2011
Quote:
Originally Posted by ToPhrESH
Do you have the script under OnPlayerSpawn()?
|
Yes I do.
Quote:
Originally Posted by TheYoungCapone
what do you mean dizzy?
|
It's all strange and such, take a look at the picture then you will know what I mean.
Re: [HELP] 3D Textlabel -
_rAped - 09.01.2011
Is the prisoner number stacking? Does it occure on connect or on death? I can imagine that it sets it double when dying.
Re: [HELP] 3D Textlabel -
joeri55 - 09.01.2011
Quote:
Originally Posted by _rAped
Is the prisoner number stacking? Does it occure on connect or on death? I can imagine that it sets it double when dying.
|
Alright, I used Delete3D on playerdeath now, hoping it works. Thanks for your help!
Re: [HELP] 3D Textlabel -
TheYoungCapone - 09.01.2011
ohh ok seeing the picture that means that the 3dtext label is being added more than one time so maybe u have it onplayerconnect and onplayerspawn
Re: [HELP] 3D Textlabel -
tooomi - 20.02.2011
put else if instead if on the second code
Re: [HELP] 3D Textlabel -
Marricio - 20.02.2011
you might have to toggle the player tag