SA-MP Forums Archive
Problems with player 3d text labels - 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: Problems with player 3d text labels (/showthread.php?tid=565774)



Problems with player 3d text labels - zaibaslr2 - 01.03.2015

Hey,
I'm creating labels in arrays like this:
pawn Код:
enum eakmenys
{
...
PlayerText3D:label,
PlayerText3D:adminlabel,
..
..
}

enum krumuenum
{
...
...
PlayerText3D:label,
PlayerText3D:adminlabel,
..
}

enum emedziai
{  
...
PlayerText3D:label,
PlayerText3D:adminlabel,
..
..
}
Creating the labels:
pawn Код:
for(new i = 0; i < MAX_TREES; i++)
{
tree[i][adminlabel] = CreatePlayer3DTextLabel(playerid,........);
tree[i][label] = CreatePlayer3DTextLabel(playerid, .......);
}
But whenever I want to delete "adminlabel", it deletes "label" too, but from first tree (id 0)

pawn Код:
for(new i = 0; i < MAX_TREES; i++)
{
DeletePlayer3DTextLabel(playerid,tree[i][adminlabel]);
}
I hope you understood my problem.
Thanks for any help



----
PROBLEM FIXED
---