From 91c082878c9bcfe9c22a41dccb99698837b07a50 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 6 Jan 2006 14:44:32 +0000 Subject: [PATCH] wa --- plugins/include/amxmodx.inc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/plugins/include/amxmodx.inc b/plugins/include/amxmodx.inc index e951246e..b7c7d062 100755 --- a/plugins/include/amxmodx.inc +++ b/plugins/include/amxmodx.inc @@ -913,3 +913,18 @@ native int3(); //This is a good idea to fatally, but gracefully, handle errors. //You can set a failed error message. native set_fail_state(const err_msg[]); + +//Returns the reference address of the variable passed in. +//This address is local to the plugin, and not a full CPU address +//pass the variable as the first parameter +native get_var_addr(...); + +//Returns the value of an address. This dereferences something returned by +// get_var_addr(). Attempting to pass in a value beyond stack or heap limits +// will result in AMX_ERR_MEMACCESS. +native get_addr_val(addr); + +//Sets the value of an address. same as above, essentially +native set_addr_val(addr, val); + +