Delete3DTextLabel & Label Problem
#1

pawn Код:
new Text3D: Tattos[5][MAX_PLAYERS]; // 5 tattos per player

// somewhere in my command
SetTimerEx("DestroyTatto",5000,false,"d",Tattos[k][playerid]);

forward DestroyTatto(Text3D:label);
public DestroyTatto(Text3D:label)
{
    if(label) Delete3DTextLabel(label);
};
If i do this, i get warning ( tag mismatch at SetTimerEx )

but if i change SetTimerEx("DestroyTatto",5000,false,"d",Tattos[k][playerid]) to: SetTimerEx("DestroyTatto",5000,false,"d",_:Tattos[k][playerid]) i don't get warning, but after 5 seconds my label isn't deleted ...
Reply
#2

pawn Код:
forward DestroyTatto();
public DestroyTatto()
{    
     Delete3DTextLabel(Text3D); // or the other name of the 3d text
}
Reply
#3

No because i must delete the val of Tattos[k][playerid] ... i have to delete more text3d's ... not only 1
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)