[ SOLVED ] Difference between the codes?
What is the difference between the codes?
Code:
Code:
|
Re: [ HELP ] Difference between the codes?
No difference
They both do sethamparamfloat only if the statements are true |
Re: [ HELP ] Difference between the codes?
The main difference is at below part:
Code:
if(is_user_alive(attacker) && g_has_weapon[attacker] && get_user_weapon(attacker) == CSW_WPN)Code:
if(!is_user_alive(attacker) || !g_has_weapon[attacker] || get_user_weapon(attacker) != CSW_WPN) |
Re: [ HELP ] Difference between the codes?
Which one is most recommended?
|
Re: [ HELP ] Difference between the codes?
We can't recommend anything unless you tell us what you're trying to do.
|
Re: [ HELP ] Difference between the codes?
I would do the first one because it's cleaner and more logical.
Code 1 PHP Code:
PHP Code:
|
Re: [ HELP ] Difference between the codes?
Thanks for the help :fox:
|
Re: [ SOLVED ] Difference between the codes?
Nevermind. ;)
|
| All times are GMT -4. The time now is 17:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.