Using tagof in switch statement crashes compiler
#1

I have strange issue, here is code:
pawn Код:
main()
{
    new tag = tagof(Float:);
    new a;

    switch(tag)
    {
        case (tagof(Float:)):
        {
            print("ok");
        }
        case (tagof(bool:)):
        {
            print("okkkk");
        }
    }
}
Compiler just crashes when trying to compile this code. Variable assignement works great, but when I use tagof after 'case' it stops working. Simple 'if' statement with tagof also works great.
Reply
#2

wow, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)