11.05.2014, 09:31
If i remove the code, the server starts well.
Code:
[11:46:33] [debug] Native backtrace: [11:46:33] [debug] #0 536120f1 in ?? () from C:\Users\Adam\Downloads\samp03z_svr_RC1-2_win32\plugins\streamer.DLL [11:46:33] [debug] #1 53361afe in AmxLoad () from C:\Users\Adam\Downloads\samp03z_svr_RC1-2_win32\plugins\Inventory.DLL [11:46:33] [debug] #2 00469205 in ?? () from C:\Users\Adam\Downloads\samp03z_svr_RC1-2_win32\samp-server.exe
Code:
struct items { int itemid; }; struct items example; PLUGIN_EXPORT bool PLUGIN_CALL Load(void **ppData) { pAMXFunctions = ppData[PLUGIN_DATA_AMX_EXPORTS]; logprintf = (logprintf_t)ppData[PLUGIN_DATA_LOGPRINTF]; logprintf("Inventory plugin loaded"); example.itemid = 5; return 1; }