24.02.2012, 00:08
Hi all
Lets say in ProcessTick() I have a condition that would call a callback
How can one loop thru all the Abstract Machine? (ThatAMX)
Thank you.
Lets say in ProcessTick() I have a condition that would call a callback
Код:
PLUGIN_EXPORT void PLUGIN_CALL ProcessTick()
{
if(blah == something)
{
cell amx_Ret;
int amx_Idx;
if(amx_FindPublic(ThatAMX, "OnSnoobIsLost", &amx_Idx) == AMX_ERR_NONE)
{
amx_Exec(ThatAMX,&amx_Ret,amx_Idx);
}
}
}
Thank you.

