AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Solved Extension entry point (https://forums.alliedmods.net/showthread.php?t=312076)

PastyBully 11-15-2018 07:28

Extension entry point
 
Hello everybody,

I develop an extension, but when I put my extension on my server in the "extension" directory. It display an error "Unable to find extension entry point". So I searched on the internet, but I didn't found anything. So I would like to know what is an entry point of an extension.

Sorry for my english

PastyBully

Dragokas 11-15-2018 10:42

Re: Extension entry point
 
https://github.com/alliedmodders/sou...onSys.cpp#L170
https://github.com/alliedmodders/sou...k_ext.cpp#L106
https://github.com/alliedmodders/sou...xtension.h#L40

Possible,
Code:

#include "smsdk_ext.h"
or

Code:

SMEXT_LINK(&g_Sample);
is missing.

Code:

/**
 * @brief Exposes plugin's main interface.
 */
#define SMEXT_LINK(name) SDKExtension *g_pExtensionIface = name;

https://wiki.alliedmods.net/Writing_...Sample_Project


All times are GMT -4. The time now is 13:44.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.