02.04.2015, 20:29
(
Последний раз редактировалось S4t3K; 02.04.2015 в 21:01.
)
Hey !
I tried to code a plugin today, using Kyosaur's tut and Zeex's sampgdk plugin.
Though, when I start the server, it crashes. Then, I decided to load crashdetect to locate the crash source, and it displays me this :
The strange thing here is that my AmxLoad function contains nothing unusual :
It compiled with no errors in Visual Studio 2013.
Full code here : http://pastebin.com/79qEH8id
I tried to code a plugin today, using Kyosaur's tut and Zeex's sampgdk plugin.
Though, when I start the server, it crashes. Then, I decided to load crashdetect to locate the crash source, and it displays me this :
Код:
[22:21:59] Loading filterscript 'test_fs.amx'... // the filterscript where I test the natives I added [22:22:00] [debug] Server crashed due to an unknown error [22:22:00] [debug] Native backtrace: [22:22:00] [debug] #0 0f2e1b92 in AmxLoad () from plugins\plugin.dll [22:22:00] [debug] #1 00469205 in ?? () from samp-server.exe
PHP код:
AMX_NATIVE_LIST natives[] =
{
{"IsVirtualKeyPressed", IsVirtualKeyPressed_},
// more natives
{ NULL, NULL }
};
PLUGIN_EXPORT int PLUGIN_CALL AmxLoad(AMX *amx)
{
return amx_Register(amx, natives, -1);
}
Full code here : http://pastebin.com/79qEH8id