26.03.2015, 11:43
The labels are now working perfectly fine, but this time the disappearing label passes on players.
For example, ID 0 doesn't have a label on his head, once he time out and relogs this problem will pass on ID 1 and so on.
I am not sure, I have tried someone's suggestion with the INVALID_3DTEXT_LABEL thing.
It is almost working except to this problem.
Here is my code.
For example, ID 0 doesn't have a label on his head, once he time out and relogs this problem will pass on ID 1 and so on.
I am not sure, I have tried someone's suggestion with the INVALID_3DTEXT_LABEL thing.
It is almost working except to this problem.
Here is my code.
PHP код:
new Text3D:Label[MAX_PLAYERS];
//OnGameModeInit
for(new x=0; x<MAX_PLAYERS; x++)
{
Label[x] = Text3D:INVALID_3DTEXT_ID;
}
//OnPlayerConnect
Label[playerid] = Create3DTextLabel("SWF", -1, 0.0, 0.0, 0.0, 7.0, 0);
Attach3DTextLabelToPlayer(Label[playerid], playerid, 0.0, 0.0, 0.5);
//OnPlayerDisconnect
Delete3DTextLabel(Label[playerid]);
Label[playerid] = Text3D:INVALID_3DTEXT_ID;
//Other functions
Update3DTextLabelText(bahblah) - But i don't think this has something to do with it so yeah leave it like that