Raised This Month: $ Target: $400
 0% 

This plugin crashes my server (natives help!)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode