error 033: array must be indexed (variable "-unknown-")
#3

if you only intend to use a single letter to name the gates, you could use sscanf's c (character) specifier.
pawn Код:
new tgate; // not an array

if(sscanf(params, "c", tgate)) ...

switch(tgate)
{
    case 'a', 'A': {} // Note: single quotes!
    case 'b', 'B': {}
    case 'c', 'C': {}
}
Reply


Messages In This Thread
error 033: array must be indexed (variable "-unknown-") - by quagga - 23.04.2012, 15:02
Re: error 033: array must be indexed (variable "-unknown-") - by blewert - 23.04.2012, 15:10
Re: error 033: array must be indexed (variable "-unknown-") - by Vince - 23.04.2012, 15:14
Re: error 033: array must be indexed (variable "-unknown-") - by quagga - 23.04.2012, 15:30

Forum Jump:


Users browsing this thread: 1 Guest(s)