04.05.2011, 16:16
I assume you mean a function/native that can be ported to PAWN.
If you have the SA-MP plugin SDK for 0.2, then you'll notice an enum containing all of the natives for plugins, look closely at the two values on the lines, they should show as:
Or something similar, replicate that line with the function you're creating, then copy the first line of n_HelloWorld, which would be something along the lines of:
Copy that code and change 'HelloWorld' to the name of your function and include the left and right braces for your function and then implement your code within the function.
If you DO mean callbacks, then you need to be specific. What is it being called for?
If you have the SA-MP plugin SDK for 0.2, then you'll notice an enum containing all of the natives for plugins, look closely at the two values on the lines, they should show as:
Код:
"HelloWorld", n_HelloWorld
Код:
static cell AMX_NATIVE_CALL n_HelloWorld( AMX* amx, cell* params )
If you DO mean callbacks, then you need to be specific. What is it being called for?