3DTextLabel - Bug or error on my behalf?
#1

Ok - the basics of the problem: The 3DTextLabel creates fine and works fine - But it doesn't delete.

At the top of script:
Код:
new Text3D:SpawnProtectionLabel[MAX_PLAYERS];
new SpawnProtectionLabelActive[MAX_PLAYERS];
Inside a command:
Код:
SpawnProtectionLabel[playerid] = Create3DTextLabel("{FF0000}Spawnkill Protection Enabled", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, 0);
Attach3DTextLabelToPlayer(SpawnProtectionLabel[playerid], playerid, 0, 0, 0.5);
SpawnProtectionLabelActive[playerid] = 1;
-- It then calls a timer of 7 seconds, the timer has this inside: (It works, as my HP does change)

Код:
SetPlayerHealth(playerid, 100);
TextDrawHideForPlayer(playerid, SpawnProtection);
Delete3DTextLabel(SpawnProtectionLabel[playerid]);
SpawnProtectionLabelActive[playerid] = 0;
- Thanks, I hope you realise what I have done wrong / or maybe a SA-MP bug?

It is not deleting, and the timer is definetly called, as my HP changes.
Reply
#2

Hmm..
Reply
#3

Does anyone know what's wrong? Will rep+!
Reply
#4

Are you using SetTimerEx?
Reply
#5

IT doesn't matter, anything about the timer. The timer WORKS and I know that for sure. It is nothing to do with the timer, since the timer is called successfully.
Reply
#6

If you're not using "SetTimerEx", then it will be only working for ID 0.

Revise the SetTimer and try changing it to SetTimerEx.

Good luck Pizzy mate
Reply
#7

Try
Код:
DeletePlayer3DTextLabel(SpawnProtectionLabel[playerid]);
Reply
#8

Working yet, Pizzy?
Reply
#9

Why dont you post Timer?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)