This mute plugin is always giving me errors along these lines:
Player 14 is not in game.
[AMXX] Displaying debug trace (plugin "Mute.amxx", version "1.0")
[AMXX] Run time error 10: native error (native "menu_display")
[AMXX] [0] Mute.sma::clcmd_mute (line 73)
[AMXX] [1] Mute.sma::handled_show_players (line 173)
PHP Code:
62 public clcmd_mute(id)
63 {
64 static menu;
65 menu = menu_create("\r[MUTE] \yMute menu", "handled_clcmd_mute");
66
67 menu_additem(menu, "Mute microphone", "1", 0);
68 menu_additem(menu, "Mute chat", "2", 0);
69
70 if (get_user_flags(id) & ADMIN_MENU)
71 menu_additem(menu, "Gag menu", "3", 0);
72
73 menu_display(id, menu);
74 return PLUGIN_HANDLED;
75 }
169 public handled_show_players(id, menu, item)
170 {
171 if (item == MENU_EXIT)
172 {
173 clcmd_mute(id);
174 return;
175 }
Any ideas of what I need to add or take?
Let me know if you guys need the whole code! Thanks.