Quote:
Originally Posted by fysiks
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({x, y}:z)
{
if(z == x1 || z == x2)
return 1237
if(z == y1 || z == 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...