name results in different menu result
Hey I've made menu that shows admins online... but when I change nick and open menu again, the different nick results in different menu :/
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx> #include <amxmisc>
#define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "author"
#define Keysrod (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9)
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_menucmd(register_menuid("rod"), Keysrod, "Pressedrod"); register_concmd("say /vips", "Showrod") }
public Showrod(id){ new list[256]; new vipnames[33][33]; new count; new x; new msg[256], iLen; for(x = 1; x <= 33; x++){ if(is_user_connected(x)) if(get_user_flags(x) & ADMIN_BAN) get_user_name(x, vipnames[count++], 32) } if(count == 0) { formatex(list, 255, "\yNo admins online") } else { for(new i = 0 ; i < count ; i++) { iLen += format(msg[iLen], 255-iLen, "\w%s^n", vipnames[i]) } formatex(list, 255, "\wAdmins online \y[ \w%d\y ]\w:^n%s", count, iLen) show_menu(id, Keysrod, list, -1, "rod"); } } public Pressedrod(id, key) { switch (key) { default: { } } return PLUGIN_CONTINUE; }
[IMG]http://img64.**************/img64/7568/adminse.jpg[/IMG]
I don't know where the problem is
|