I have a problem when trying to return a float from a function registered with register_native. It works completly fine when I use integers but gives an error when I tried to use floats. Any suggetions?
//In The Plugin
new Float:thistest
thistest=g_ftest(id)
//The Plugin That Contains The Native Register
new Float:testfloat=4.44;
register_native("g_ftest","natv_ftest",1);
public natv_ftest(id)
{
return testfloat; //says the error is on this line "tag mismatch"
}
//The .inc for the registers
native Float:g_ftest(id);