Array index (proprocessor) ?
#1

Hello,
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;
}
Is there anything to do?
Thanks for help.
Reply


Messages In This Thread
Array index (proprocessor) ? - by ATomas - 18.11.2018, 12:42
Re: Array index (proprocessor) ? - by ATomas - 18.11.2018, 13:39
Re: Array index (proprocessor) ? - by ATomas - 18.11.2018, 13:57
Re: Array index (proprocessor) ? - by ATomas - 18.11.2018, 14:31

Forum Jump:


Users browsing this thread: 1 Guest(s)