Referenced parameters?
#4

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:

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;
}
Ўssǝl‾ʎ 'ƃuıɥʇǝɯos pǝssıɯ ı ɟı ǝɯ ʇɔǝɹɹoɔ
Reply


Messages In This Thread
Referenced parameters? - by yom - 18.01.2009, 21:54
Re: Referenced parameters? - by Donny_k - 18.01.2009, 22:52
Re: Referenced parameters? - by yom - 18.01.2009, 23:19
Re: Referenced parameters? - by yom - 19.01.2009, 16:07
Re: Referenced parameters? - by rafay - 19.01.2009, 16:17
Re: Referenced parameters? - by kc - 19.01.2009, 16:18
Re: Referenced parameters? - by rafay - 19.01.2009, 16:20
Re: Referenced parameters? - by yom - 19.01.2009, 16:28
Re: Referenced parameters? - by kc - 19.01.2009, 16:30
Re: Referenced parameters? - by Antironix - 19.01.2009, 17:18
Re: Referenced parameters? - by yom - 15.05.2009, 21:46
Re: Referenced parameters? - by ICECOLDKILLAK8 - 15.05.2009, 22:12
Re: Referenced parameters? - by yom - 15.05.2009, 22:38
Re: Referenced parameters? - by ICECOLDKILLAK8 - 16.05.2009, 10:13
Re: Referenced parameters? - by yom - 16.05.2009, 12:38
Re: Referenced parameters? - by yom - 22.11.2009, 18:41

Forum Jump:


Users browsing this thread: 1 Guest(s)