19.08.2013, 07:26
I want to get the size of enum, this is valid but it gives a warning
I know that test1 = 3 but I put "test1" into The line 1 because I don't want to change it every time I add or remove something from the enum. That gives me the tag missmatch warning. The same goes to The line 2. How do I get rid of the warning? The code works by the way.
pawn Код:
enum test1
{
bla,
bla2,
bla3
}
new Test[MAX_PLAYERS][test1];
pawn Код:
for (new i = 0; i < test1; i++) // The line 1
{
if (Test[playerid][i] == 1) // The line 2
{
//blabla
}
}