SA-MP Forums Archive
amx_Release - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: amx_Release (/showthread.php?tid=467026)



amx_Release - overflow - 30.09.2013

The Pawn Abstract Machine implements amx_Release like that:
Код:
int AMXAPI amx_Release(AMX *amx,cell amx_addr)
{
  if (amx->hea > amx_addr)
    amx->hea=amx_addr;
  return AMX_ERR_NONE;
}
Don't you have to call amx_Release in reversed order to properly release data from the amx heap?