Quote:
Originally Posted by xbennY
@fysiks
Very nice!!
Was anyone here on the forum at some tutorial (I think that is fixed) who had spoken it.
I will try your tips, thanks!
@KliPPy
What is "tagof"? How does it works?
------------
Another question:
What's the best way to reset all that enum data?
|
I just can tell that not much people know about it, but "tagof" operator allows you to get tag of a specific variable. So you could probably do something like this:
PHP Code:
new CustomTag: custom_variable;
new tagof(CustomTag): another_variable;
although, I doubt that will work at run-time, since it will probably just tag another_variable at compilation time. Tags are also indexed, so they are only a number. Take a look at PAWN Language presentation on their site, there you could find more info about "tagof" operator.