Dynamic 3DTextLabels Problem
#1

So.. I want every player in my server to each have its own Dynamic3DTextLabels, but when the players reach 20-30+ some players has its own Labels, and others not

Here's what i did:
Код:
new Text3D:RankLabels[MAX_PLAYERS] = {Text3D:INVALID_3DTEXT_ID, ...}; 

public OnPlayerSpawn(playerid)
{
 if(!IsValidDynamic3DTextLabel(RankLabels[playerid])) RankLabels[playerid] = CreateDynamic3DTextLabel(lrank, 0x009900BB, 0.0, 0.0, 0.60, 25.0, .attachedplayer=playerid);
 return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
 DestroyDynamic3DTextLabel(RankLabels[playerid]), RankLabels[playerid] = Text3D:INVALID_3DTEXT_ID;
 return 1;
}
Please Help.
Thanks!
Reply
#2

bump,

also theres 100 slots in the server
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)