[Tutorial] How to make a Callback
#11

The 'GetPlayerPos' is not an callback but rather a usual function, the references are gained by Amx_GetAddr.
Though I suggest you to be familiar with C++ quite a bit and know how AMX works so you don't just do it with trial-and-error approach(which is not good at all) and actually understand why something is done!
Example:
Код:
cell *pFirstParam = NULL;
if(amx_GetAddr(amx, params[1], &pFirstParam) == AMX_ERR_NONE)
{ 
    *pFirstParam = 123;
}
Reply


Messages In This Thread
How to make a Callback - by Pghpunkid - 14.06.2011, 06:47
Re: How to make a Callback - by Raimis_R - 14.06.2011, 07:20
Re: How to make a Callback - by Lorenc_ - 14.06.2011, 07:35
Re: How to make a Callback - by kacper55331 - 14.06.2011, 08:13
Re: How to make a Callback - by Lorenc_ - 14.06.2011, 08:18
Re: How to make a Callback - by Pghpunkid - 14.06.2011, 08:31
Re: How to make a Callback - by 0x5A656578 - 14.06.2011, 10:19
Re: How to make a Callback - by kacper55331 - 14.06.2011, 11:32
Re: How to make a Callback - by Pghpunkid - 14.06.2011, 12:34
Re: How to make a Callback - by RyDeR` - 30.06.2011, 21:10
Re: How to make a Callback - by Omega-300 - 30.06.2011, 21:39
Re: How to make a Callback - by RyDeR` - 30.06.2011, 22:20
Re: How to make a Callback - by Kyosaur - 07.07.2011, 22:19
Re: How to make a Callback - by Gamer_Z - 08.07.2011, 09:26
Re: How to make a Callback - by RyDeR` - 08.07.2011, 09:46
Re: How to make a Callback - by Gamer_Z - 08.07.2011, 10:01
Re: How to make a Callback - by MovieDrifting - 06.12.2012, 16:35

Forum Jump:


Users browsing this thread: 1 Guest(s)