FindNative crashes server
#4

Quote:
Originally Posted by Scottas
Посмотреть сообщение
I have debugged it with logprintf function, and when I use amx_FindNative, server crashes ( i see, that print stops before this function in my serverlog ). Well, I'm not cheking whether amx is null, and I haven't set it in AmxLoad. I've just recently started work with plugins.
Okay then. Do what James advised you to and next time use Visual Studio to debug your plugins. It'll make your life so much easier!

Also, bare in mind that your server might load several different AMX machines - including both your gamemode and filterscripts. You can either change the *amx pointer to the last virtual machine loaded by simply overwriting it in every AmxLoad, or use a more sophisticated way like Incognito's CInvoke. Take look at it and have fun developing plugins!
Reply


Messages In This Thread
FindNative crashes server - by Scottas - 07.07.2010, 20:36
Re: FindNative crashes server - by Misiek - 07.07.2010, 21:01
Re: FindNative crashes server - by Scottas - 07.07.2010, 21:39
Re: FindNative crashes server - by Misiek - 08.07.2010, 00:29
Re: FindNative crashes server - by Scottas - 09.07.2010, 11:39

Forum Jump:


Users browsing this thread: 1 Guest(s)