Raised This Month: $ Target: $400
 0% 

[HELP] Why it always happens to me Menu?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 05-16-2014 , 08:47   [HELP] Why it always happens to me Menu?
Reply With Quote #1

Fixed

Last edited by Fuck For Fun; 07-06-2014 at 12:55. Reason: Solved
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 05-17-2014 , 09:32   Re: [HELP] Why it always happens to me Menu?
Reply With Quote #2

I can't recreate the problem with your code.
I would try using a "new" variable for the menu handle. I've had weird problems before when using static variables that made them "stick".
So your problem might be that iMenu is not always set with menu_create() and it will keep the old value which it will then call again.
At least that would explain the problem.
__________________
Black Rose is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 05-17-2014 , 10:19   Re: [HELP] Why it always happens to me Menu?
Reply With Quote #3

That error is kind of a mystery, I'm not experiencing it myself but there are many people which do while doing nothing wrong. I've also seen people have it with initializing the variable with a new, but it's worth a shot regardless.

If it doesn't work, your best bet is to open the amxmodx source code and see under which circumstances this error occurs.
Backstabnoob 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 09:48.


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