3DTextLabel - Bug or error on my behalf? -
Pizzy - 27.05.2012
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.
Re: 3DTextLabel - Bug or error on my behalf? -
HighPitchedVoice - 27.05.2012
Hmm..
Re: 3DTextLabel - Bug or error on my behalf? -
Pizzy - 27.05.2012
Does anyone know what's wrong? Will rep+!
Re: 3DTextLabel - Bug or error on my behalf? -
ViniBorn - 27.05.2012
Are you using SetTimerEx?
Re: 3DTextLabel - Bug or error on my behalf? -
Pizzy - 27.05.2012
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.
Re: 3DTextLabel - Bug or error on my behalf? -
iGetty - 27.05.2012
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
Re: 3DTextLabel - Bug or error on my behalf? -
TzAkS. - 27.05.2012
Try
Код:
DeletePlayer3DTextLabel(SpawnProtectionLabel[playerid]);
Re: 3DTextLabel - Bug or error on my behalf? -
String - 27.05.2012
Working yet, Pizzy?
Re: 3DTextLabel - Bug or error on my behalf? -
[MG]Dimi - 27.05.2012
Why dont you post Timer?