It seem there's no pointer conscept in pawn. You may
pass a array to get the resoult of the function.
Like:
intersect(src1[], src2[],result[])
I am new to pawn too.And I also want to know is there
an easy way to pass datas between native and vm.
May be you should way for answer form others.
======== 2013-04-23 06:59:24 ========
Today's Topic Summary
Group:
http://groups.google.com/group/pawnscript/topics
native functions that returns arrays [1 Update]
native functions that returns arrays
kre...@princip.cz Apr 22 09:18AM -0700
Hi,
I have found that there is way in PAWN to define native function that
returns arrays, as example here:
*native intersect[Rect](src1[Rect], src2[Rect])*
But I am not able to find way how to implemented it. From observing
standard callbacks:
*int AMXAPI amx_Callback(AMX *amx, cell index, cell *result, const cell
*params)*
It seems to me that there is no way, since the native function returns only
one cell, that is stored into results.
Can you advice? Shall I re implement this callback or is there correct
standard way.
Thx Jan
ven....@gmail.com
2013-04-23