Raised This Month: $51 Target: $400
 12% 

Server Crashing but Plugin has no errors!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ComedyShotsGamer
Senior Member
Join Date: Mar 2016
Old 05-26-2016 , 14:43   Server Crashing but Plugin has no errors!
Reply With Quote #1

I have this Shop but when i am for example CT or T and i open the Shop and choose a menu my server crashes?

Last edited by ComedyShotsGamer; 05-27-2016 at 06:26.
ComedyShotsGamer is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 05-26-2016 , 16:42   Re: Server Crashing but Plugin has no errors!
Reply With Quote #2

Discuss it in the thread wherever you got it from.
redivcram is offline
ComedyShotsGamer
Senior Member
Join Date: Mar 2016
Old 05-26-2016 , 16:47   Re: Server Crashing but Plugin has no errors!
Reply With Quote #3

I got it private...
ComedyShotsGamer is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 05-26-2016 , 17:01   Re: Server Crashing but Plugin has no errors!
Reply With Quote #4

Discuss it with whoever you got it from.
redivcram is offline
jackp
Member
Join Date: Jan 2016
Location: 
Old 05-26-2016 , 17:07   Re: Server Crashing but Plugin has no errors!
Reply With Quote #5

>Wrong Forums
>Full of if's and switches that interrupts visibility
>i don't see the error (maybe i'm retar*)
jackp is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-26-2016 , 17:28   Re: Server Crashing but Plugin has no errors!
Reply With Quote #6

PHP Code:
p_Shop register_cvar("pubnet_shop""1")
    
    
p_Shop                          register_cvar("pubnet_shop""1"
You have this in your code, it should be there only once afaik.

And like Jackp said, there are so many if's that could be done so much better...

write debug in plugins.ini after your plugin name and check your logs to see if there are any errors... There should be imo if the server crashes.

EDIT:

This is what i get as error:
Code:
L 05/26/2016 - 23:31:11: Start of error session.
L 05/26/2016 - 23:31:11: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20160526.log")
L 05/26/2016 - 23:31:11: Invalid CVAR pointer
L 05/26/2016 - 23:31:11: [AMXX] Displaying debug trace (plugin "plugin.amxx")
L 05/26/2016 - 23:31:11: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 05/26/2016 - 23:31:11: [AMXX]    [0] plugin.sma::guards_shop (line 512)
I've been looking trough your code and i can see that there is a variable that is never been asigned to something

PHP Code:
if(get_pcvar_num(p_GrenadesMenuCT) == 1
This is causing your problem.

p_GrenadesMenuCT was never assigned as a cvar, just like p_GrenadesMenuT

EDIT 2:

I have added these cvars into the plugin and tested it to see if the problem was solved but the problem isn't fixed, looking further into your code now
__________________

Last edited by Napoleon_be; 05-26-2016 at 17:40.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
WAR3DM
Senior Member
Join Date: Mar 2016
Old 05-26-2016 , 19:44   Re: Server Crashing but Plugin has no errors!
Reply With Quote #7

Sounds like you're just missing some files in the server /cstrike directory.
WAR3DM is offline
Reply



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 02:38.


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