View Single Post
AnimalMonster
Senior Member
Join Date: May 2020
Old 02-10-2023 , 09:49   Re: Multi-tagging tag mismatch
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
Did you read the section in the Pawn Language Guide about plural tagging? There are some pieces of info that I think might be relevant to your issue. The discussion of plural tags starts with the last paragraph on page 142 and continues onto page 143. Particularly, this might be relevant:



If you could provide a working example (doesn't have to be your full code, just an excerpt in a compilable plugin would be nice) that doesn't have any non-standard dependencies, it's be easier for us to test things out.
As is stated in the quote you gave me, it takes only one tag when used so the only way to use it that way is to somewhst detect the tag used which it seems impossible to do. Or remove the tag.

Here's a simplier version of what i did:
PHP Code:
enum x
{
     
x1,
     
x2
}

enum y
{
    
y1,
    
y2
}

function({
xy}:z)
{
    if(
== x1 || == x2)
       return 
1237

    
if(== y1 || == y2)
       return 
6252

    
return 1

One way we can do this is create a variable of type any which will be equal to "z" but i wonder if there's any other option...

Last edited by AnimalMonster; 02-10-2023 at 09:50. Reason: Grammatical mistakes
AnimalMonster is offline