This plugin crashes my server (natives help!)
Thanks to everybody
#trashit |
Re: This plugin crashes my server
Remove natives and see if it works
|
Re: This plugin crashes my server
it's probably Nvault causing the crash.
Your save file maybe corrupted. |
Re: This plugin crashes my server
No it wasn't from nVault.
It was from the natives , I mean not plugin_natives() the other part of natives idk how it is called in english lol.. what's the problem with them??? When I quoted them - the server stopped crashes? |
Re: This plugin crashes my server
The problem is with this native:
/* public native_get_user_level(id) { return g_iLevel[id] } */ All others are not quoted and server is working, when I unquote this one server stops working. |
Re: This plugin crashes my server
Use style=0, and look up how the native callback is defined.
https://forums.alliedmods.net/showthread.php?t=41251 |
Re: This plugin crashes my server
Look up into other similar plugins to see how natives are properly done
By the way, you forgot to register_library in plugin_natives |
Re: This plugin crashes my server
Removed
PHP Code:
PHP Code:
Then 2nd try: Changed the native to: PHP Code:
3rd try: Changed the native to: PHP Code:
Looked at another plugins and the natives are registered 100% the same way as mine (you can take a look of ZP 4.3 plugin for example it's the same [I've took the example out of there]) The library (LevelSystem): PHP Code:
P.S. The suspicous thing is the server.cfg file is executed twice. How I got that? I wrote: PHP Code:
|
Re: This plugin crashes my server (natives help!)
Code:
Code:
|
Re: This plugin crashes my server (natives help!)
Quote:
|
All times are GMT -4. The time now is 16:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.