I just learning to make plugin.
Why this code got crashed?
the problem is in amx_NumNatives
Crashlog:
Why this code got crashed?
the problem is in amx_NumNatives
Code:
PLUGIN_EXPORT int PLUGIN_CALL AmxLoad(AMX * amx)
{
int ayy = 0;
amx_NumNatives(amx, &ayy);
if (ayy)
{
sampgdk::logprintf("Wee");
}
return 1; // return amx_Register(amx, sa_core::natives, -1);
}
Code:
-------------------------- SA-MP Server: 0.3.7-R2 Exception At Address: 0x786D612E Module: (Unknown) Registers: EAX: 0x00000000 EBX: 0x0218E2D8 ECX: 0x031E7BF8 EDX: 0x00000000 ESI: 0x0210E504 EDI: 0x0210E8D0 EBP: 0x72656461 ESP: 0x00515C0C EFLAGS: 0x00010206 Stack: +0000: 0x00000000 0x00000000 0x00000000 0x00000000 +0010: 0x00000000 0x00000000 0x00000000 0x00000000 +0020: 0x00000000 0x00000000 0x00000000 0x00000000 +0030: 0x00000000 0x00000000 0x00000000 0x00000000 +0040: 0x00000000 0x00000000 0x00000000 0x00000000 +0050: 0x00000000 0x00000000 0x00000000 0x00000000 +0060: 0x00000000 0x00000000 0x00000000 0x00000000 +0070: 0x00000000 0x00000000 0x00000000 0x00000000 +0080: 0x00000000 0x00000000 0x00000000 0x00000000 +0090: 0x00000000 0x00000000 0x00000000 0x00000000 +00A0: 0x00000000 0x00000000 0x00000000 0x00000000 +00B0: 0x00000000 0x00000000 0x00000000 0x00000000 +00C0: 0x00000000 0x00000000 0x00000000 0x00000000 +00D0: 0x00000000 0x00000000 0x00000000 0x00000000 +00E0: 0x00000000 0x00000000 0x00000000 0x00000000 +00F0: 0x008F25E1 0x00000000 0x003DDB50 0x00000000 +0100: 0x00000000 0x00000000 0x00000000 0x00000000 +0110: 0x00000000 0x00000000 0x00000000 0x00000000 +0120: 0x0000002A 0x00000000 0x00000000 0x00000000 +0130: 0x00000000 0x00000000 0x00000000 0x00000000 -------------------------- Loaded Modules: samp-server.exe A: 0x00400000 - 0x00519000 (E:\Graefal\N-Gaming Network\vendor\samp\samp-server.exe) ntdll.dll A: 0x77730000 - 0x778B0000 (C:\Windows\SysWOW64\ntdll.dll) kernel32.dll A: 0x756B0000 - 0x757C0000 (C:\Windows\syswow64\kernel32.dll) KERNELBASE.dll A: 0x771C0000 - 0x77207000 (C:\Windows\syswow64\KERNELBASE.dll) SHELL32.dll A: 0x76110000 - 0x76D5A000 (C:\Windows\syswow64\SHELL32.dll) msvcrt.dll A: 0x75FA0000 - 0x7604C000 (C:\Windows\syswow64\msvcrt.dll) SHLWAPI.dll A: 0x75330000 - 0x75387000 (C:\Windows\syswow64\SHLWAPI.dll) GDI32.dll A: 0x77240000 - 0x772D0000 (C:\Windows\syswow64\GDI32.dll) USER32.dll A: 0x75B10000 - 0x75C10000 (C:\Windows\syswow64\USER32.dll) ADVAPI32.dll A: 0x75EF0000 - 0x75F90000 (C:\Windows\syswow64\ADVAPI32.dll) sechost.dll A: 0x75AB0000 - 0x75AC9000 (C:\Windows\SysWOW64\sechost.dll) RPCRT4.dll A: 0x75390000 - 0x75480000 (C:\Windows\syswow64\RPCRT4.dll) SspiCli.dll A: 0x750C0000 - 0x75120000 (C:\Windows\syswow64\SspiCli.dll) CRYPTBASE.dll A: 0x750B0000 - 0x750BC000 (C:\Windows\syswow64\CRYPTBASE.dll) LPK.dll A: 0x75C10000 - 0x75C1A000 (C:\Windows\syswow64\LPK.dll) USP10.dll A: 0x76070000 - 0x7610D000 (C:\Windows\syswow64\USP10.dll) WSOCK32.dll A: 0x73EA0000 - 0x73EA7000 (C:\Windows\system32\WSOCK32.dll) WS2_32.dll A: 0x772D0000 - 0x77305000 (C:\Windows\syswow64\WS2_32.dll) NSI.dll A: 0x75F90000 - 0x75F96000 (C:\Windows\syswow64\NSI.dll) WINMM.dll A: 0x72EE0000 - 0x72F12000 (C:\Windows\system32\WINMM.dll) IMM32.DLL A: 0x75160000 - 0x751C0000 (C:\Windows\system32\IMM32.DLL) MSCTF.dll A: 0x75480000 - 0x7554C000 (C:\Windows\syswow64\MSCTF.dll) MSVCP100.dll A: 0x527E0000 - 0x52849000 (C:\Windows\system32\MSVCP100.dll) MSVCR100.dll A: 0x52720000 - 0x527DF000 (C:\Windows\system32\MSVCR100.dll) sa-core.dll A: 0x528C0000 - 0x528D0000 (E:\Graefal\N-Gaming Network\vendor\samp\plugins\sa-core.dll) MSVCP140.dll A: 0x74E70000 - 0x74EDE000 (C:\Windows\system32\MSVCP140.dll) VCRUNTIME140.dll A: 0x75080000 - 0x75095000 (C:\Windows\system32\VCRUNTIME140.dll) api-ms-win-crt-runtime-l1-1-0.dll A: 0x75070000 - 0x75074000 (C:\Windows\system32\api-ms-win-crt-runtime-l1-1-0.dll) ucrtbase.DLL A: 0x74F90000 - 0x7506C000 (C:\Windows\system32\ucrtbase.DLL) api-ms-win-core-timezone-l1-1-0.dll A: 0x74F80000 - 0x74F83000 (C:\Windows\system32\api-ms-win-core-timezone-l1-1-0.dll) api-ms-win-core-file-l2-1-0.dll A: 0x74F70000 - 0x74F73000 (C:\Windows\system32\api-ms-win-core-file-l2-1-0.dll) api-ms-win-core-localization-l1-2-0.dll A: 0x74F60000 - 0x74F63000 (C:\Windows\system32\api-ms-win-core-localization-l1-2-0.dll) api-ms-win-core-synch-l1-2-0.dll A: 0x73E80000 - 0x73E83000 (C:\Windows\system32\api-ms-win-core-synch-l1-2-0.dll) api-ms-win-core-processthreads-l1-1-1.dll A: 0x74F50000 - 0x74F53000 (C:\Windows\system32\api-ms-win-core-processthreads-l1-1-1.dll) api-ms-win-core-file-l1-2-0.dll A: 0x74F40000 - 0x74F43000 (C:\Windows\system32\api-ms-win-core-file-l1-2-0.dll) api-ms-win-crt-string-l1-1-0.dll A: 0x74F30000 - 0x74F34000 (C:\Windows\system32\api-ms-win-crt-string-l1-1-0.dll) api-ms-win-crt-heap-l1-1-0.dll A: 0x74F20000 - 0x74F23000 (C:\Windows\system32\api-ms-win-crt-heap-l1-1-0.dll) api-ms-win-crt-stdio-l1-1-0.dll A: 0x74F10000 - 0x74F14000 (C:\Windows\system32\api-ms-win-crt-stdio-l1-1-0.dll) api-ms-win-crt-convert-l1-1-0.dll A: 0x74F00000 - 0x74F04000 (C:\Windows\system32\api-ms-win-crt-convert-l1-1-0.dll) api-ms-win-crt-locale-l1-1-0.dll A: 0x74EE0000 - 0x74EE3000 (C:\Windows\system32\api-ms-win-crt-locale-l1-1-0.dll) api-ms-win-crt-math-l1-1-0.dll A: 0x74EF0000 - 0x74EF5000 (C:\Windows\system32\api-ms-win-crt-math-l1-1-0.dll) api-ms-win-crt-multibyte-l1-1-0.dll A: 0x74E60000 - 0x74E65000 (C:\Windows\system32\api-ms-win-crt-multibyte-l1-1-0.dll) api-ms-win-crt-time-l1-1-0.dll A: 0x74E50000 - 0x74E53000 (C:\Windows\system32\api-ms-win-crt-time-l1-1-0.dll) api-ms-win-crt-filesystem-l1-1-0.dll A: 0x74D60000 - 0x74D63000 (C:\Windows\system32\api-ms-win-crt-filesystem-l1-1-0.dll) api-ms-win-crt-environment-l1-1-0.dll A: 0x713C0000 - 0x713C3000 (C:\Windows\system32\api-ms-win-crt-environment-l1-1-0.dll) api-ms-win-crt-utility-l1-1-0.dll A: 0x71150000 - 0x71153000 (C:\Windows\system32\api-ms-win-crt-utility-l1-1-0.dll) mswsock.dll A: 0x72EA0000 - 0x72EDC000 (C:\Windows\system32\mswsock.dll) wshtcpip.dll A: 0x72E40000 - 0x72E45000 (C:\Windows\System32\wshtcpip.dll) DNSAPI.dll A: 0x737C0000 - 0x73804000 (C:\Windows\system32\DNSAPI.dll) WLIDNSP.DLL A: 0x73790000 - 0x737B7000 (C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL) PSAPI.DLL A: 0x75670000 - 0x75675000 (C:\Windows\syswow64\PSAPI.DLL) mdnsNSP.dll A: 0x73760000 - 0x73781000 (C:\Program Files (x86)\Bonjour\mdnsNSP.dll) Iphlpapi.DLL A: 0x73660000 - 0x7367C000 (C:\Windows\system32\Iphlpapi.DLL) WINNSI.DLL A: 0x73650000 - 0x73657000 (C:\Windows\system32\WINNSI.DLL) rasadhlp.dll A: 0x73750000 - 0x73756000 (C:\Windows\system32\rasadhlp.dll) wship6.dll A: 0x72A50000 - 0x72A56000 (C:\Windows\System32\wship6.dll) NLAapi.dll A: 0x73810000 - 0x73820000 (C:\Windows\system32\NLAapi.dll) napinsp.dll A: 0x53D80000 - 0x53D90000 (C:\Windows\system32\napinsp.dll) pnrpnsp.dll A: 0x53D60000 - 0x53D72000 (C:\Windows\system32\pnrpnsp.dll) winrnr.dll A: 0x53D50000 - 0x53D58000 (C:\Windows\System32\winrnr.dll)