Damage Event not working?!
Hello and I don't understand why the damage event is not working?
Here is the code: PHP Code:
|
Re: Damage Event not working?!
How is the damage event not working? Does onDamage() ever get called? Add a client_print() to onDamage() and see if it's being executed.
If that works, you need to debug your code incrementally. Add a bunch of prints in there to see what values are occurring so that you can track down what is and isn't being executed and why. |
Re: Damage Event not working?!
I also tried with client_print() but still doesn't work! Oh yeah? It's a bug then!
|
Re: Damage Event not working?!
|
Re: Damage Event not working?!
Quote:
Debug the code properly. |
Re: Damage Event not working?!
How to debug? You mean to test the code?
|
Re: Damage Event not working?!
I mean to put client_print messages before each if() statement to see where the execution of the code stops.
|
Re: Damage Event not working?!
Post the exact code that you used to "debug" your code.
|
Re: Damage Event not working?!
Oh wait! It now works! Sorry for what happened. And one more thing: How to block Pick Up weapons Event when you're zombie?
|
Re: Damage Event not working?!
Blocking weapon pickup has been covered many times. You would just need a condition to only block if zombie.
|
| All times are GMT -4. The time now is 07:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.