added register_menu() | fixed a compiler warning in access()
This commit is contained in:
parent
4fccdd676b
commit
af69e24eaf
@ -40,8 +40,8 @@ stock cmd_access(id,level,cid,num) {
|
||||
stock access(id,level) {
|
||||
if ( level==ADMIN_ADMIN )
|
||||
return is_user_admin(id)
|
||||
else
|
||||
return (get_user_flags(id) & level)
|
||||
|
||||
return (get_user_flags(id) & level)
|
||||
}
|
||||
|
||||
stock is_user_admin(id) {
|
||||
@ -135,6 +135,9 @@ stock get_configsdir(name[],len)
|
||||
stock get_datadir(name[],len)
|
||||
return get_localinfo("amxx_datadir",name,len)
|
||||
|
||||
stock register_menu(title[],keys,function[],outside=0)
|
||||
register_menucmd(register_menuid(title,outside),keys,function)
|
||||
|
||||
/* Backwards Compatibility
|
||||
* don't use it! */
|
||||
stock get_customdir(name[],len)
|
||||
|
Loading…
Reference in New Issue
Block a user