Raised This Month: $ Target: $400
 0% 

get_user_weapon errors w/ bots


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
urban_ninja
Senior Member
Join Date: Feb 2009
Old 09-28-2011 , 00:08   get_user_weapon errors w/ bots
Reply With Quote #1

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.
__________________
urban_ninja is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode