now here's another error that comes up
L 08/16/2014 - 22

1:01: [AMXX] Displaying debug trace (plugin "bazooka_fixed.amxx")
L 08/16/2014 - 22

1:01: [AMXX] Run time error 10: native error (native "cs_get_user_plant")
L 08/16/2014 - 22

1:01: [AMXX] [0] bazooka_fixed.sma::client_disconnect (line 395)
anyone help please?!
PHP Code:
public client_disconnect(id) {
/* Notes:
i now think that using switch_hands() here is too late to
put the player's cl_righthand cvar back to normal
I think i need to find an event that happens just before the player dc's
*/
ammo_hud(id, 0)
if (get_cvar_num("amx_bazooka_autohands") == 1) {
switch_hands(id,0)
}
Munni[id] = 0
user_controll[id] = 0
hasBazooka[id] = false
if ((cs_get_user_plant(id) == 1) || cantswitch) {
cs_set_user_plant(id,0,0)
cantswitch = false
//if this person had the bomb out and dc'ed then the other players can now access the bomb
}
}