register_native and floats
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); |
Re: register_native and floats
Code:
|
Re: register_native and floats
Better...
Code:
|
| All times are GMT -4. The time now is 06:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.