View Single Post
KaLoIaN
Senior Member
Join Date: Feb 2013
Old 05-19-2016 , 09:44   Re: This plugin crashes my server
Reply With Quote #8

Removed

PHP Code:
#include <LevelSystem> 
and added

PHP Code:
    register_library("LevelSystem"
and not worked.

Then 2nd try:

Changed the native to:

PHP Code:
register_native("zp_get_user_level""native_get_user_level"
not worked lol

3rd try:

Changed the native to:

PHP Code:
register_native("zp_get_user_level""native_get_user_level"0
again not worked.

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:
native zp_get_user_level(id)
native zp_set_user_level(idamount)

native zp_get_user_exp(id)
native zp_set_user_exp(idamount)

native zp_get_user_reset(id)
native zp_set_user_reset(idamount)

native zp_get_user_boost(id)
native zp_set_user_boost(idamount)

native zp_get_user_escapes(id)
native zp_set_user_escapes(idamount
Any help will be appreciated.


P.S.
The suspicous thing is the server.cfg file is executed twice. How I got that?
I wrote:

PHP Code:
echo Server.CFG Executed
at server.cfg and when start server at console it writes this twice and then the server has crashed.

Last edited by KaLoIaN; 05-19-2016 at 10:18.
KaLoIaN is offline