Pawn making new specifiers and Tags
#6

No, there is no function (btw typedef is an operator).
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
    
}

Reply


Messages In This Thread
Pawn making new specifiers and Tags - by GhostHacker - 19.09.2016, 00:43
Re: Pawn making new specifiers and Tags - by Kaliber - 19.09.2016, 00:53
Re: Pawn making new specifiers and Tags - by GhostHacker - 19.09.2016, 01:05
Re: Pawn making new specifiers and Tags - by Kaliber - 19.09.2016, 01:07
Re: Pawn making new specifiers and Tags - by GhostHacker - 19.09.2016, 01:13
Re: Pawn making new specifiers and Tags - by Kaliber - 19.09.2016, 01:20
Re: Pawn making new specifiers and Tags - by GhostHacker - 19.09.2016, 01:22
Re: Pawn making new specifiers and Tags - by Kaliber - 19.09.2016, 01:26
Re: Pawn making new specifiers and Tags - by GhostHacker - 19.09.2016, 01:31

Forum Jump:


Users browsing this thread: 1 Guest(s)