Problem with Delete3DTextLabel - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with Delete3DTextLabel (
/showthread.php?tid=171532)
Problem with Delete3DTextLabel -
Mean - 26.08.2010
K i got pretty annoyed by this:
I did:
Top of script:
Код:
new Text3D:label[MAX_PLAYERS];
Command:
Код:
if (strcmp("/command", cmdtext, true, 10) == 0)
{
label[playerid] = Create3DTextLabel("Text",COLOR_BRIGHTRED,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
}
Then i did:
Код:
if (strcmp("/command2", cmdtext, true, 10) == 0)
{
Delete3DTextLabel(label[playerid]);
return 1;
}
Now the problem is when player types /command2 the label still stays on player, it doesn't remove...
The thing i was trying to do is basically an admin duty system, like /command is like /adminduty
and it should say "on duty admin, dont attack bla bla" but when player types /command2 the label admin duty still stays above him
How to fix this?
Re: Problem with Delete3DTextLabel -
Mean - 27.08.2010
Bump, no answers
Re: Problem with Delete3DTextLabel -
playbox12 - 27.08.2010
pawn Код:
if (strcmp("/command2", cmdtext, true, 10) == 0)
{
Delete3DTextLabel(label);
Update3DTextLabelText(label, COLOR_BRIGHTRED, "");
return 1;
}
No idea why it doesen't work for you but try this
Re: Problem with Delete3DTextLabel -
Mean - 28.08.2010
Thanks playbox12