19.09.2016, 01:20
No, there is no function (btw typedef is an operator).
So you have to do sth like this:
So you have to do sth like this:
PHP Code:
new test:a;
//for functions where u allow only a specific tag:
func(test:x) //If you give here a variable with another tag... = warning
{
}
//You can also do
func(x)
{
new tmp = tagof (x);
if(tmp == tagof (test:))
{
//x is from type test
}
else
{
//Here its not
}
}