03.05.2014, 16:45
^ You need to include the sampgdk library.
1>SAMPlugin.obj : error LNK2001: unresolved external symbol __imp__sampgdk_SendClientMessageToAll
why when i press F7 to get the dll i get this error?:
PHP код:
Please help me! |
#include <sampgdk/a_players-decl.h>
Did you download the zip file from this page? It has everything you need.
|
Did you download the zip file from this page? It has everything you need.
|
1>SAMPlugin.obj : error LNK2019: unresolved external symbol __imp__sampgdk_SendClientMessageToAll referenced in function "bool __cdecl SendClientMessageToAll(int,char const *)" (?SendClientMessageToAll@@YA_NHPBD@Z)
PLUGIN_EXPORT void PLUGIN_CALL Unload()
{
logprintf(" * Test plugin was unloaded.");
SendClientMessageToAll(-1,"Dan Test");
}
Well, maybe it is but it's the latest "stable" version.
The one that I'm currently working on is not backward compatible with the previous versions and is still under heavy development (and thus may change a lot). It was called 4.0-pre at some point but then I changed the version number to 3.99 for some odd reason... |
v0.3z, (C)2005-2014 SA-MP Team
[18:34:30] filterscripts = "" (string)
[18:34:30]
[18:34:30] Server Plugins
[18:34:30] --------------
[18:34:30] Loading plugin: SAMPlugin.dll
[18:34:30] * Test plugin was loaded.
[18:34:30] Loaded.
[18:34:30] Loading plugin: sampgdk3.dll
[18:34:30] Plugin does not conform to architecture.
[18:34:30] Failed.
[18:34:30] Loaded 1 plugins.
C:\Users\Malganys\Desktop\C++\include\plugin.h In file included from C:\Users\Malganys\Desktop\C++\include/plugin.h 22 C:\Users\Malganys\Desktop\C++\include\a_samp.h from C:\Users\Malganys\Desktop\C++\include/a_samp.h 2 C:\Users\Malganys\Desktop\C++\Programa.cpp from C:\Users\Malganys\Desktop\C++\Programa.cpp 185 47 C:\Users\Malganys\Desktop\C++\include\sdk\amx\amx.h [Warning] 'packed' attribute ignored for field of type 'char [20]' [-Wattributes] 215 25 C:\Users\Malganys\Desktop\C++\include\sdk\amx\amx.h [Note] in expansion of macro 'PACKED' 185 47 C:\Users\Malganys\Desktop\C++\include\sdk\amx\amx.h [Warning] 'packed' attribute ignored for field of type 'char' [-Wattributes] 265 25 C:\Users\Malganys\Desktop\C++\include\sdk\amx\amx.h [Note] in expansion of macro 'PACKED' 185 47 C:\Users\Malganys\Desktop\C++\include\sdk\amx\amx.h [Warning] 'packed' attribute ignored for field of type 'char' [-Wattributes] 266 25 C:\Users\Malganys\Desktop\C++\include\sdk\amx\amx.h [Note] in expansion of macro 'PACKED' C:\Program Files (x86)\Dev-Cpp\MinGW64\x86_64-w64-mingw32\lib32\libmingw32.a(lib32_libmingw32_a-crt0_c.o) In function `main': 18 h:\crossdev\src\mingw-w64-v3-svn\mingw-w64-crt\crt\crt0_c.c undefined reference to `WinMain@16' C:\Users\Malganys\Desktop\C++\collect2.exe [Error] ld returned 1 exit status
#if defined __GNUC__ #define PACKED __attribute__((packed)) #else #define PACKED #endif