Quote:
Originally Posted by NikKOo31
Maybe because the player is already disconnected (?)
Change
PHP Code:
if ((cs_get_user_plant(id) == 1) || cantswitch) {
cs_set_user_plant(id,0,0)
cantswitch = false
}
To
PHP Code:
if (cantswitch) {
cantswitch = false
}
|
I did like you said..it fixed it.. now I get another error in the logs..
seems like every time I fix 1 line I get another line giving error
can anyone help below
now I get this:
L 08/17/2014 - 20:27:52: [AMXX] Displaying debug trace (plugin "bazooka_fixed.amxx")
L 08/17/2014 - 20:27:52: [AMXX] Run time error 10: native error (native "attach_view")
L 08/17/2014 - 20:27:52: [AMXX] [0] bazooka_fixed.sma::pfn_touch (line 994)
PHP Code:
attach_view(entity_get_edict(ptr, EV_ENT_owner), entity_get_edict(ptr, EV_ENT_owner))
user_controll[entity_get_edict(ptr, EV_ENT_owner)] = 0
remove_entity(ptr)