18.11.2018, 12:42
Hello,
i need find index of array in compile time. Like this:
Is there anything to do?
Thanks for help.
i need find index of array in compile time. Like this:
Код:
new ArrayString[][] = {
/*
some string lines
*/
{"some string"},
/* something like #define ARRAY_INDEX = */{"my string"},//Index of this is 1 (but i don't now it)
{"string continue"},
/*
some string lines
*/
};
public OnFilterScriptInit()
{
printf("index of array ArrayString where text is 'my string' = %d",ARRAY_INDEX);//index is 1
return 1;
}
Thanks for help.


