[Floats] Problem I've been having... Partially Solved... Proper Solution Needed!
#3

I'm using amx_ftoc, sorry forgot to put it in the initial post...

Code:
float ReturnedValue(int id, int slot);
...
static cell AMX_NATIVE_CALL n_ReturnedValue( AMX* amx, cell* params )
{
 return amx_ftoc(FloatData[params[1]][params[2]]);
}
...
The Main reason I'm using arrays in C++ over arrays in PAWN is because of preference. I like C++ more, and obviously it is more powerful if you know hot to use it to it's max.
Right now, this seems to be the only real problem I'm having with plugins... later I'll have to figure out how return character arrays... but that's another subject.

Since you asked, my plan is to do whatever I can in the plugin. This includes loading and saving variables into arrays, string modifications, etc. Then, I'll do all the basic stuff in PAWN, using the plugin.

Thanks for any input,
Stephen
Reply


Messages In This Thread
[Floats] Problem I've been having... Partially Solved... Proper Solution Needed! - by XPlatform - 12.03.2009, 05:33
Re: [Floats] Problem I've been having... Partially Solved... Proper Solution Needed! - by ICECOLDKILLAK8 - 12.03.2009, 16:07
Re: [Floats] Problem I've been having... Partially Solved... Proper Solution Needed! - by XPlatform - 12.03.2009, 20:22

Forum Jump:


Users browsing this thread: 1 Guest(s)