05.08.2012, 10:05
Hello, it's me again on the wrong side of help.
This is not valid code - everybody knows unicorns are fluffy. Anyway I get tag mismatch, because the array is tagless and expects integers, not enums. Is there way to somehow group these enums? With something like
or something?
I've already tried with weak tags - no results. Thanks for help
pawn Код:
#define MAX_FOOD 3
new Food[MAX_FOOD];
enum Pancake {
withMapleSyrup,
isSweet
}
enum Pizza {
doubleCheese,
hasKetchup,
size,
drawingOnBox[64]
}
/* Somewhere in code */
{
Food[0] = (AreFluffy(Unicorns)) ? (Pizza) : (Pancake);
}
pawn Код:
enum FOOD {
Pancake,
Pizza
}
//And then
new FOOD:Food[MAX_FOOD];
Food[0] = Pancake;
Food[0][doubleCheese] = true; //Yay!
I've already tried with weak tags - no results. Thanks for help