Getting argument type?
#1

Is there any way you can possibly identify an argument's type. Currently i am only working on single index arguments, no arrays.

So if i have a function like this:
pawn Код:
MyFunc({_, Float}:...)
{
}
How can i do such thing:
pawn Код:
MyFunc({_, Float}:...)
{
    if (its only a number)
    {
    }
    else if (its only a float)
    {
    }
    else //its a string
    {
    }
}
Reply


Messages In This Thread
Getting argument type? - by Gammix - 19.01.2016, 01:18
Re: Getting argument type? - by Jefff - 19.01.2016, 01:43
Re: Getting argument type? - by SickAttack - 19.01.2016, 02:19
Re: Getting argument type? - by Gammix - 19.01.2016, 02:21
Re: Getting argument type? - by Vince - 19.01.2016, 10:53
Re: Getting argument type? - by Gammix - 19.01.2016, 13:27
Re: Getting argument type? - by BroZeus - 19.01.2016, 13:48

Forum Jump:


Users browsing this thread: 2 Guest(s)