View Single Post
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-12-2020 , 09:15   Re: Advanced GlowMenu v2.0.0 [12/04/2020]
Reply With Quote #17

In addition to the things I mentioned in your other thread:

1.

PHP Code:
for(new isizeof(szCommands); i++) {
        
#if AMXX_VERSION_NUM < 183
        
formatex(szChatcharsmax(szChat), "say %s"szCommands[i]);
        
register_clcmd(szChat"CheckSettings");

        
formatex(szChatcharsmax(szChat), "say_team %s"szCommands[i]);
        
register_clcmd(szChat"CheckSettings");
        
#else
        
register_clcmd(fmt("say %s"szCommands[i]), "CheckSettings");
        
register_clcmd(fmt("say_team %s"szCommands[i]), "CheckSettings");
        
#endif
    

szChat is not defined anywhere. Same goes for szTemp down below.

You should try compiling under 1.8.2 before releasing.

2.

PHP Code:
public CheckSettings(id) {
    if(
get_user_flags(id) & ADMIN_KICK && get_pcvar_num(pAdminsOnly)) {
        
menu_display(idiMainMenu);
    }

    else if(!
get_pcvar_num(pAdminsOnly)) {
        
menu_display(idiMainMenu);
    }

=>

PHP Code:
public CheckSettings(id) {
    if(
get_user_flags(id) & ADMIN_KICK || !get_pcvar_num(pAdminsOnly)) {
        
menu_display(idiMainMenu);
    }

3.

Code:
menu_item_getinfo(iColorMenu, item, _, szRGB, charsmax(szRGB));

This won't compile under 1.8.2 either because the third parameter is not optional in that version.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom