mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
added include defs for new forward creation
This commit is contained in:
parent
cb291dbdd5
commit
2d0e12363f
@ -286,3 +286,13 @@ enum {
|
||||
#define AMX_ERR_PARAMS 25
|
||||
|
||||
#define INVALID_HANDLE -1
|
||||
|
||||
#define ET_IGNORE 0 //ignore return val
|
||||
#define ET_STOP 1 //stop on PLUGIN_HANDLED
|
||||
#define ET_STOP2 2 //same, except return biggest
|
||||
#define ET_CONTINUE 3 //no stop, return biggest
|
||||
|
||||
#define FP_CELL 0
|
||||
#define FP_FLOAT 1
|
||||
#define FP_STRING 2
|
||||
#define FP_ARRAY 4
|
@ -928,3 +928,34 @@ native get_addr_val(addr);
|
||||
native set_addr_val(addr, val);
|
||||
|
||||
|
||||
/**
|
||||
* creates a multi-plugin forward.
|
||||
* results will be > 0 for success
|
||||
*/
|
||||
native CreateMultiForward(const name[], stop_type, ...);
|
||||
|
||||
/**
|
||||
* creates a forward for one plugin.
|
||||
* results will be > 0 for success
|
||||
* id can be returned from find_plugin_byfile or
|
||||
* anything get_plugin is compatible with.
|
||||
*/
|
||||
native CreateOneForward(plugin_id, const name[], ...);
|
||||
|
||||
/**
|
||||
* prepares an array. use this and pass the result into
|
||||
* ExecuteForward() instead of the array itself.
|
||||
*/
|
||||
native PrepareArray(array[], size, copyback=0);
|
||||
|
||||
/**
|
||||
* executes a forward. returns result in ret.
|
||||
* returns 1 for success, 0 for failure.
|
||||
*/
|
||||
native ExecuteForward(forward_handle, &ret, ...);
|
||||
|
||||
/**
|
||||
* Destroys/deallocates any type of forward
|
||||
*/
|
||||
native DestroyForward(forward_handle);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user