#1

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);
Reply
#2

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.
Reply
#3

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)