Why? - 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: Why? (
/showthread.php?tid=272811)
Why? -
ZeQualX - 30.07.2011
i've made an /status system using 3dtext labels but it always get bugged why does this happen?
my server has around 200-300 players it could be the reason?
im using this:
pawn Code:
new Text3D: xStatus[MAX_PLAYERS];
OnPlayerConnect
Delete3DTextLabel(xStatus[playerid]);
OnPlayerSpawn
xStatus[playerid] = Create3DTextLabel(PlayerInfo[playerid][pStatus],Blue,30.0,40.0,5.0,40.0,1);
Attach3DTextLabelToPlayer(xStatus[playerid], playerid, 0.0, 0.0, 0.00);
OnPlayerCommand
Delete3DTextLabel(xStatus[playerid]);
xStatus[playerid] = Create3DTextLabel(PlayerInfo[playerid][pStatus],Blue,30.0,40.0,5.0,40.0,1);
Attach3DTextLabelToPlayer(xStatus[playerid], playerid, 0.0, 0.0, 0.00);
Re: Why? -
iggy1 - 30.07.2011
Post some
real code and may be someone can help you. Also telling people it is always "bugged" isn't very descriptive at all.
How is it bugged? When do the bugs happen?
Ps, i found out only recently if you attach a 3DLabel to a player that player
cannot see it.
Re: Why? -
ZeQualX - 31.07.2011
The labels has never been shown cause the color i fixed it already now if i use Delete3DTextLabel(xEstado[playerid]); deletes playerid label and someone else's label, why does this happen?