Raised This Month: $ Target: $400
 0% 

Operators


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
red_bull2oo6
Senior Member
Join Date: Mar 2012
Location: Braila, Romania
Old 07-29-2013 , 19:54   Re: Operators
Reply With Quote #1

well, the num > 0 will always get called because user has at least 1 weapon in the check above..
so you could put only num > 0 and return handled.. it will do the same.

i`m still confuse of what you're trying to do.

if user has at least one weapon you block drop command? ( that's what your code from above does ).
red_bull2oo6 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-29-2013 , 23:42   Re: Operators
Reply With Quote #2

This doesn't make sense. num will contain the ammo for that particular weapon. Also, if num is 1 then it will ALWAYS be greater than zero.
__________________
fysiks is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-30-2013 , 01:10   Re: Operators
Reply With Quote #3

fysiks you are confusing get_user_weapon and get_user_weapons.

About problem, may be you are focused on the wrong thing.
What does trigger those crashes ? I thinkk there could be something to fix in custom weapons plugins.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 07-30-2013 at 01:10.
ConnorMcLeod is offline
Reply



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 15:52.


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