Dynamic 3DTextLabels Problem - 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)
+--- Thread: Dynamic 3DTextLabels Problem (
/showthread.php?tid=594930)
Dynamic 3DTextLabels Problem -
Jeffy892 - 25.11.2015
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!
Re: Dynamic 3DTextLabels Problem -
Jeffy892 - 25.11.2015
bump,
also theres 100 slots in the server