[HELP] Weapon Damages
#5

Quote:
Originally Posted by Troydere
Посмотреть сообщение
If you do, then can you explain me what is the meaning of this?

Код:
            switch(armour)
            {
                if(armour <= 0)
				{
					case 0:
It's contradicting itself, I know that. I don't know how to write it properly, that's why I came here for help.
ANYWAYS, what it does is this:
Код:
            switch(armour) //Checks if player has armor.
            {
                if(armour <= 0) //Checks if player's armor is 0 or less than that.
				{
					case 0: //When Armor is 0, do whatever
Yet, even without the
Код:
if(armour <= 0) //Checks if player's armor is 0 or less than that.
{
It still removes the player's health and armor at the same time. Not just armor.
Reply


Messages In This Thread
[HELP] Weapon Damages - by oSAINTo - 22.03.2017, 19:54
Re: [HELP] Weapon Damages - by Toroi - 22.03.2017, 19:56
Re: [HELP] Weapon Damages - by oSAINTo - 22.03.2017, 20:00
Re: [HELP] Weapon Damages - by Toroi - 22.03.2017, 20:01
Re: [HELP] Weapon Damages - by oSAINTo - 22.03.2017, 20:04
Re: [HELP] Weapon Damages - by Private200 - 22.03.2017, 20:11
Re: [HELP] Weapon Damages - by Toroi - 22.03.2017, 20:33

Forum Jump:


Users browsing this thread: 2 Guest(s)