The get_user_weapon seems to have mad compatibility issues with FoxBot. Is there an other function that does the exact same thing but is stable with bots?
You guys would probably recommend I use is_user_bot function to disclude bots but it would feel to awkward that extra dynamic light flashes with weapon fire would only work with real players.
My usage of this funtion
PHP Code:
if(get_user_weapon(id) == TFC_WPN_AC)
Resulting in an error spam in the amxx error logs if bots were ever spawned any time from map start to map end. amxx error logs would range up to 1 terabyte after a day filled with nothing but the following error.
Code:
L 09/27/2011 - 00:00:00: [AMXX] Displaying debug trace (plugin "myplugin.amxx")
L 09/27/2011 - 00:00:00: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 09/27/2011 - 00:00:00: [AMXX] [0] huf.sma::tfc_ac_FireFlash (line 446)
L 09/27/2011 - 00:00:00: Invalid player id 0
Severity of the error spam varies.
__________________