Hello,
I am trying to make a native, because I need share some variables. So I checked some plugins + a tutorial and tried to make it. However, I get an error and I have no idea how to fix it.
Error:
Quote:
// C:\...\addons\sourcemod\scripting\Shop.sp(109 ) : error 100: function prototypes do not match
|
My include file (shop.inc):
PHP Code:
#if defined _shop_included
#endinput
#endif
#define _shop_included
/**
* Gets if there is running a giveaway.
*
* @return bool True if a giveaway is running, false otherwise.
*/
native bool IsGiveawayRunning();
My plugin file (Shop.sp - error is on line with `CreateNative`):
PHP Code:
public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
{
CreateNative("IsGiveawayRunning", Native_IsGiveawayRunning);
return APLRes_Success;
}
public bool Native_IsGiveawayRunning(Handle plugin, int numParams)
{
return (IsGiveaway || IsGiveawayLastCT || IsGiveawayKills || IsGiveawayAnswer);
}
Thanks for help.