[Help]Making a callback
#2

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:

Код:
"HelloWorld",           n_HelloWorld
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:

Код:
static cell AMX_NATIVE_CALL n_HelloWorld( AMX* amx, cell* params )
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?
Reply


Messages In This Thread
[Help]Making a callback - by Dave001 - 04.05.2011, 16:04
Re: [Help]Making a callback - by Calgon - 04.05.2011, 16:16
Re: [Help]Making a callback - by Dave001 - 04.05.2011, 16:21
Re: [Help]Making a callback - by Calgon - 04.05.2011, 16:29
Re: [Help]Making a callback - by Calgon - 04.05.2011, 16:35
Re: [Help]Making a callback - by Dave001 - 04.05.2011, 16:44

Forum Jump:


Users browsing this thread: 2 Guest(s)