Tag mismatches DestroyAllLabels() function - 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)
+--- Thread: Tag mismatches DestroyAllLabels() function (
/showthread.php?tid=624158)
Tag mismatches DestroyAllLabels() function -
Sellize - 11.12.2016
Код:
stock DestroyAllLabels() // Destroy ALL 3d labels on the server
{
for(new i; i < MAX_3DTEXT_GLOBAL; i++)
{
if(IsValidDynamic3DTextLabel(i)) DestroyDynamic3DTextLabel(i);
}
return 1;
}
gm.pwn(106) : warning 213: tag mismatch
gm.pwn(106) : warning 213: tag mismatch
106 is the line with if(IsValidDynamic3DTextLabel(i))
What's wrong here?
Re: Tag mismatches DestroyAllLabels() function -
Vince - 11.12.2016
Use a tag override in this case.
PHP код:
if(IsValidDynamic3DTextLabel(Text3D:i)) DestroyDynamic3DTextLabel(Text3D:i);
Re: Tag mismatches DestroyAllLabels() function -
Sellize - 11.12.2016
Quote:
Originally Posted by Vince
Use a tag override in this case.
PHP код:
if(IsValidDynamic3DTextLabel(Text3D:i)) DestroyDynamic3DTextLabel(Text3D:i);
|
Confusing. I thought you only used that when creating the variable. It works, so thanks!