22.11.2009, 18:41
Bump, because i don't want to create another topic as my question is related to referenced parameters.
I need to know, is it safe to do this:
What do you think? Assuming the function is used correctly in Pawn, will it be safe?
I need to know, is it safe to do this:
Код:
static cell AMX_NATIVE_CALL n_func(AMX *amx, cell *params) { cell *cptr; amx_GetAddr(amx, params[1], &cptr)) *cptr = 7; *(cptr-1) = 12; //this, instead of another amx_GetAddr call for getting physical address of params[2]. return 1; }