23.04.2012, 15:14
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': {}
}