08.07.2010, 00:29
Quote:
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.
|
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!