How can i call afl function which return single value (not array) like selectedValue in C++

with gSite.CallFunction i can call afl function which return array as result, but hơ can i call function which return single value?

Read the ADK properly, everything is explained.
Open sample codes and study that.

AmiVar	(*CallFunction) ( const char *szName, int nNumArgs, AmiVar *ArgsTable );

CallFunction() return is of Type AmiVar.

You have to define the appropriate AmiVar Type member as float.

AmiVar myvar;
	myvar.type = VAR_FLOAT;