Server crashes when comparing weapons...
Hey all, i'm just trying to compare weapons. I need to know if a user is holding a nade or a knife, because set_user_hitzones doesn't work for that. So I don't want it to say you dodged, when in fact you didn't. Maybe i'm not doing it right, but here's my code
if(is_user_alive(Victim) && (get_user_weapon(id) != CSW_KNIFE) || (get_user_weapon(id) != CSW_HEGRENADE){ //do dodge stuff } and it crashes. If I use this, it works fine: if(is_user_alive(Victim)) { //do dodge stuff } |
Re: Server crashes when comparing weapons...
Code:
|
try
Code:
|
| All times are GMT -4. The time now is 16:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.