Hi, dudes. I try to write function-wrapper for retrieving float values in C++. Something like:
I want it to work equally well when a floating-point number is passed by value or by reference:
How do I know if a floating-point number was passed by value or by reference?
Code:
float GetFloat(AMX * amx, cell * params, int i);
Code:
native my_func(Float:f);
native his_func(&Float:f);