In addition to the things I mentioned in your other thread:
1.
PHP Code:
for(new i; i < sizeof(szCommands); i++) {
#if AMXX_VERSION_NUM < 183
formatex(szChat, charsmax(szChat), "say %s", szCommands[i]);
register_clcmd(szChat, "CheckSettings");
formatex(szChat, charsmax(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(id, iMainMenu);
}
else if(!get_pcvar_num(pAdminsOnly)) {
menu_display(id, iMainMenu);
}
}
=>
PHP Code:
public CheckSettings(id) {
if(get_user_flags(id) & ADMIN_KICK || !get_pcvar_num(pAdminsOnly)) {
menu_display(id, iMainMenu);
}
}
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.
__________________