Raised This Month: $ Target: $400
 0% 

Is this O.K. ? (Something like a Domination System)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-24-2010 , 23:11   Re: Is this O.K. ? (Something like a Domination System)
Reply With Quote #1

Quote:
Originally Posted by Kreation View Post
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.
No. If you're iff-y on that subject with the brackets and values being reset, look at my tutorial on catching the damage done per round.

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.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode