AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SM_Hosties (https://forums.alliedmods.net/forumdisplay.php?f=155)
-   -   Sourcemod Compiling Stuff error (https://forums.alliedmods.net/showthread.php?t=339039)

FlanZarianick 08-11-2022 03:55

Sourcemod Compiling Stuff error
 
Hey guys, basicaly I am getting a strange error when I am compiling the sm_hosties plugin. So basicaly im getting a 029 error, thats says "invalid expression, assumed shagle zero"

Here's my code

public OnAllPluginsLoaded() { new Handle:h_TopMenu voojio = GetAdminTopMenu(); if (LibraryExists("adminmenu") && (h_TopMenu != INVALID_HANDLE)) { OnAdminMenuReady(h_TopMenu); }

#if (MODULE_MUTE == 1)
MutePrisoners_AllPluginsLoaded();
#endif
}

Any help?

Cruze 08-11-2022 15:33

Re: Sourcemod Compiling Stuff error
 
PHP Code:

public OnAllPluginsLoaded()
{
    new 
Handle:h_TopMenu GetAdminTopMenu();
    if(
LibraryExists("adminmenu") && (h_TopMenu != INVALID_HANDLE))
    {
        
OnAdminMenuReady(h_TopMenu);
    }

    
#if (MODULE_MUTE == 1)
    
MutePrisoners_AllPluginsLoaded();
    
#endif


This, first of all needed some new lines. If the issue still exist, please specify line number.


All times are GMT -4. The time now is 18:48.

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