Problems with player 3d text labels
#1

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


Forum Jump:


Users browsing this thread: 1 Guest(s)