Raised This Month: $ Target: $400
 0% 

Solved Case Option depend on Cvar !!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
counterstrike1.6
Member
Join Date: Oct 2020
Old 08-27-2022 , 14:18   Re: Case Option depend on Cvar !!!
Reply With Quote #1

Quote:
Originally Posted by fysiks View Post
It's been a while since I've dealt with things like this but I'm guessing that you need to remove the menu_destroy(menuid) in Destroy_Menu(). IIRC, the menu handler function still gets called when the menu goes away so if you destroy it in Destroy_Menu() then the menu id will not exist when OpenMenu_sub() gets called automatically.

P.S. The error references line 134 but line 134 of what you posted is not a line that can cause an error (I can find the line but it bring into doubt that that is the actual code that is running). When posting errors and code, I recommend that you post the exact code that was used to compile that plugin. Also, when posting the full plugin, it's probably easier and more reliable to attach the .sma file.
Attached .sma File !!!

as i said i am not perfect in scripting [It take times to learn more and more (Me)] !!!
As i google the error but could'nt fix it

As i remove menu_destroy(menuid) its automatically select 1st option that is [Get M4A1+Deagle] and insert this menu_destroy(menuid) again give me again same error !!! Or you should make code like that logs errors will removed and plugin also work !!!
Attached Files
File Type: sma Get Plugin or Get Source (gunmenu.sma - 24 views - 6.9 KB)

Last edited by counterstrike1.6; 08-27-2022 at 15:10.
counterstrike1.6 is offline
Reply


Thread Tools
Display Modes

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 00:20.


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