12.03.2009, 20:22
I'm using amx_ftoc, sorry forgot to put it in the initial post...
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
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]]); } ...
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