This does nothing, but should do something...
Code:
|
Re: This does nothing, but should do something...
It is an Event, not a Forward, also I do not see where you change g_damage_taken.
|
Re: This does nothing, but should do something...
what do you mean?
Quote:
|
Re: This does nothing, but should do something...
Well it might be wrong what I say. I suggest you ALWAYS give the whole Code.
You got to do so anyways when you are making a Plugin public. |
Re: This does nothing, but should do something...
Quote:
|
Re: This does nothing, but should do something...
thats what I thought, since he didnt post all code it seems that y doesn't actually stand for anyhting unless that g_damage_taken[] variable is something he didnt post
|
Re: This does nothing, but should do something...
Yeah, learn how to get Help, hippo.exe.
If you only give us ten Lines of a big Plugin we cannot help you, except those Lines are completely independent. (Those aren't) We can't help lazy People. We won't help dumb People. (There I make a difference between dumb and unexperienced) |
Re: This does nothing, but should do something...
I don't think you really understand how this works.
Basically, AMXX will provide you with the information you need to change things, but in order to formally change them you need to call natives. In this case, you are just copying the information and then leaving it, thus your calculations are not needed. In order to reduce damage, you would have to change the Damage event's parameters, and also call set_user_health (or equivalent). |
Re: This does nothing, but should do something...
Well... I am a noob.. so Thank you for all your imput guys/gals.
|
| All times are GMT -4. The time now is 04:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.