Raised This Month: $ Target: $400
 0% 

Solved Case Option depend on Cvar !!!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-27-2022 , 14:07   Re: Case Option depend on Cvar !!!
Reply With Quote #11

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


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