Raised This Month: $ Target: $400
 0% 

Error when adding entry to admin menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
condolent
AlliedModders Donor
Join Date: Jan 2016
Location: gc_sLocation;
Old 06-09-2017 , 04:54   Error when adding entry to admin menu
Reply With Quote #1

Hello,
I get this error when trying to compile:
error 181: function argument named 'topmenu' differs from prototype

This is the code it's referring to:
PHP Code:
public void OnAdminMenuReady(TopMenu topmenu) {
    
    if(
obj_dmcommands == INVALID_TOPMENUOBJECT) {
        
OnAdminMenuCreated(topmenu);
    }
    
    if(
topmenu == hAdminMenu) {
        return;
    }
    
    
hAdminMenu topmenu;
    
    
// TODO: Add stuff to the menu
    

It also gives me the same error on OnAdminMenuCreated()

What does that error actually mean?
I was following this tutorial.
__________________

Last edited by condolent; 06-09-2017 at 04:55.
condolent 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 13:03.


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