Raised This Month: $ Target: $400
 0% 

Compiling errors about menu_destroy


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EpicKiller
Senior Member
Join Date: Jun 2014
Location: Constanta, Romania
Old 08-14-2014 , 18:26   Compiling errors about menu_destroy
Reply With Quote #1

So... I made that VIP menu that friend asked me to do. But it returns some errors that I can't explain to myself. I also made a test plugin, which compiles absolutely clean... again, I really doent get it.

So, here's my code.
Spoiler

And here's the test plugin.
Spoiler


So.. what's wrong? Please, help!

EDIT: Sorry, I apparently forgot to mention the errors. I attached a snapshot.
Attached Thumbnails
Click image for larger version

Name:	Snapshot_2014-08-15_013041.png
Views:	92
Size:	10.6 KB
ID:	136920  
__________________
~ Swiftly and with style ~

Last edited by EpicKiller; 08-14-2014 at 18:47.
EpicKiller is offline
Send a message via Yahoo to EpicKiller Send a message via Skype™ to EpicKiller
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 08-14-2014 , 19:34   Re: Compiling errors about menu_destroy
Reply With Quote #2

The variable "vipmenu" is not a global variable. Inside of the menu handler you get the menu id passed through in the "menu" variable, so you have to write:

PHP Code:
menu_destroy(menu); 
__________________
In Flames we trust!
Nextra is offline
EpicKiller
Senior Member
Join Date: Jun 2014
Location: Constanta, Romania
Old 08-15-2014 , 09:11   Re: Compiling errors about menu_destroy
Reply With Quote #3

Quote:
Originally Posted by Nextra View Post
The variable "vipmenu" is not a global variable. Inside of the menu handler you get the menu id passed through in the "menu" variable, so you have to write:

PHP Code:
menu_destroy(menu); 
That really didn't cross my mind for a second. Thank you so much!
__________________
~ Swiftly and with style ~
EpicKiller is offline
Send a message via Yahoo to EpicKiller Send a message via Skype™ to EpicKiller
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 13:14.


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