01.03.2015, 12:48
Hey,
I'm creating labels in arrays like this:
Creating the labels:
But whenever I want to delete "adminlabel", it deletes "label" too, but from first tree (id 0)
I hope you understood my problem.
Thanks for any help
----
PROBLEM FIXED
---
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,
..
..
}
pawn Код:
for(new i = 0; i < MAX_TREES; i++)
{
tree[i][adminlabel] = CreatePlayer3DTextLabel(playerid,........);
tree[i][label] = CreatePlayer3DTextLabel(playerid, .......);
}
pawn Код:
for(new i = 0; i < MAX_TREES; i++)
{
DeletePlayer3DTextLabel(playerid,tree[i][adminlabel]);
}
Thanks for any help
----
PROBLEM FIXED
---