native functions that returns arrays

74 views
Skip to first unread message

kre...@princip.cz

unread,
Apr 22, 2013, 12:18:13 PM4/22/13
to pawns...@googlegroups.com
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 



Reply all
Reply to author
Forward
0 new messages