19.01.2009, 16:07
Ok got it working, by reading the implementor's guide a bit, and searching infos about amx_GetAddr
Here's how to do, still with my example function. Maybe it will help someone else:
Ўssǝl‾ʎ 'ƃuıɥʇǝɯos pǝssıɯ ı ɟı ǝɯ ʇɔǝɹɹoɔ
Here's how to do, still with my example function. Maybe it will help someone else:
pawn Код:
static cell AMX_NATIVE_CALL n_func(AMX *amx, cell *params)
{
cell *cptr;
if (!amx_GetAddr(amx, params[1], &cptr))
*cptr = 7;
if (!amx_GetAddr(amx, params[2], &cptr))
*cptr = 12;
return 1;
}