Switch and symbol already defined
#1

pawn Код:
switch(var) {
    case 0: {
        new tmp[3][32];
    }
    case 1: {
        new tmp[5][16];
    }
}
This gives me warning about redefinition of symbol tmp. This would make sense if tmp value was exactly the same, but for diffrent cases I need diffrent string-array size. How can I solve this?
Reply


Messages In This Thread
Switch and symbol already defined - by Misiur - 11.02.2013, 09:44
Re: Switch and symbol already defined - by LarzI - 11.02.2013, 09:46
Re: Switch and symbol already defined - by Misiur - 11.02.2013, 09:48
Re: Switch and symbol already defined - by Misiur - 11.02.2013, 09:56
Re: Switch and symbol already defined - by Misiur - 11.02.2013, 10:05
Re: Switch and symbol already defined - by Misiur - 11.02.2013, 10:10
Re: Switch and symbol already defined - by Misiur - 11.02.2013, 10:19

Forum Jump:


Users browsing this thread: 2 Guest(s)