Is this O.K. ? (Something like a Domination System)
Well, i havenīt made a plugin for a long time, so i donīt remember almost anything. I would want to know if this code will work and what could i improve?
Code:
|
Re: Is this O.K. ? (Something like a Domination System)
Why do you have the "Kill" variable with 2 brackets. Why not just use one, because I'm not 100% but if you have the two like you have there that it will reset the "Kill" for both the attacker and the victim at the end of the function.
|
Re: Is this O.K. ? (Something like a Domination System)
Quote:
On-Topic: When you're setting all of these hud messages, you're using the same channel (4) for each of them. You can only have one message per channel. This means some messages might be overriden or something of galactic proportions could occur. You should use -1 for the channel, since this uses the next available channel. You also have a typo in your second and fourth if() statements when formatting your message. It should be %s, not %w. I fat finger those, too; don't cry. Also, change your third if() statement to an else if(), since you can't have a value that's 3 and greater than 3 at the same time. |
Re: Is this O.K. ? (Something like a Domination System)
Thanks a lot wrecked :D
one More Thing: Code:
|
| All times are GMT -4. The time now is 05:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.