Tag mismatches DestroyAllLabels() function
#1

Код:
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?
Reply
#2

Use a tag override in this case.

PHP код:
if(IsValidDynamic3DTextLabel(Text3D:i)) DestroyDynamic3DTextLabel(Text3D:i); 
Reply
#3

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)