Question about functions in plugins....
#1

Hi,

I'm having a slight problem with a project I'm working on. At the moment, I have many functions in the plugin that are forwarded to the PAWN so I can use them in the script.

All of these functions return an int. I have another function that must be void, but whenever I remove the return as in this example:
Code:
static cell AMX_NATIVE_CALL n_myfunc(AMX* amx, cell* params)
{
	dostuff();
	return 1;
}
so that it looks like this:

Code:
static cell AMX_NATIVE_CALL n_myfunc(AMX* amx, cell* params)
{
	dostuff();
}
It doesn't compile.

If anyone knows how to make a void, or other type of function in the plugin, so that it can be used in PAWN, please let me know.

Thanks,
CodeMatrix
Reply


Messages In This Thread
Question about functions in plugins.... - by XPlatform - 14.07.2009, 21:20
Re: Question about functions in plugins.... - by XPlatform - 14.07.2009, 21:27

Forum Jump:


Users browsing this thread: 1 Guest(s)