[Tutorial] HeadShot System [Explained]
#17

Quote:
Originally Posted by SickAttack
View Post
"Stock by Gammix"
"if (HeadShotSystem == true)"

You could just do "if(HeadShotSystem)" instead.

P.S. "if(!HeadShotSystem)" for false.

-----

"else if(HeadShotSystem == false)"

"else" is more than enough. If the first if-then is true then obviously the else below it will be false.
"else" is indeed more than enough, though I personally prefer to have it included as well.

The things you are pointing out are nothing more than 'personal styles and/or preferences'.
The one prefers to script it like "if(HeadShotSystem == true)" and the other prefers to script it like "if(HeadShotSystem)" They're both not wrong.

So, you pointed out pretty unrelated things.
Reply


Messages In This Thread
HeadShot System [Explained] - by iLearner - 11.01.2017, 17:35
Re: HeadShot System [Explained] - by Gammix - 11.01.2017, 17:43
Re: HeadShot System [Explained] - by Logic_ - 11.01.2017, 17:44
Re: HeadShot System [Explained] - by iLearner - 11.01.2017, 17:45
Re: HeadShot System [Explained] - by RedRex - 11.01.2017, 17:54
Re: HeadShot System [Explained] - by saffierr - 11.01.2017, 18:02
Re: HeadShot System [Explained] - by Logic_ - 11.01.2017, 18:05
Re: HeadShot System [Explained] - by iLearner - 11.01.2017, 18:06
Re: HeadShot System [Explained] - by saffierr - 11.01.2017, 18:08
Re: HeadShot System [Explained] - by RyderX - 11.01.2017, 18:32
Re: HeadShot System [Explained] - by PhoneixViper - 11.01.2017, 18:55
Re: HeadShot System [Explained] - by Gammix - 11.01.2017, 19:06
Re: HeadShot System [Explained] - by iLearner - 11.01.2017, 19:07
Re: HeadShot System [Explained] - by SickAttack - 11.01.2017, 19:27
Re: HeadShot System [Explained] - by iLearner - 11.01.2017, 19:35
Re: HeadShot System [Explained] - by SickAttack - 11.01.2017, 19:48
Re: HeadShot System [Explained] - by saffierr - 12.01.2017, 00:14
Re: HeadShot System [Explained] - by SickAttack - 12.01.2017, 00:28
Re: HeadShot System [Explained] - by saffierr - 12.01.2017, 00:58
Re: HeadShot System [Explained] - by muzammilfreeman - 12.01.2017, 01:01
Re: HeadShot System [Explained] - by Lordzy - 12.01.2017, 11:04
Re: HeadShot System [Explained] - by SyS - 12.01.2017, 11:57
Re: HeadShot System [Explained] - by iLearner - 12.01.2017, 12:39
Re: HeadShot System [Explained] - by Gammix - 12.01.2017, 13:16
Re: HeadShot System [Explained] - by SickAttack - 12.01.2017, 14:11
Re: HeadShot System [Explained] - by Lordzy - 12.01.2017, 14:23
Re: HeadShot System [Explained] - by iLearner - 12.01.2017, 14:27
Re: HeadShot System [Explained] - by GoldenLion - 12.01.2017, 14:32
Re: HeadShot System [Explained] - by SickAttack - 12.01.2017, 14:33
Re: HeadShot System [Explained] - by iLearner - 12.01.2017, 14:42
Re: HeadShot System [Explained] - by GoldenLion - 12.01.2017, 14:45
Re: HeadShot System [Explained] - by saffierr - 12.01.2017, 14:52
Re: HeadShot System [Explained] - by iLearner - 12.01.2017, 15:07
Re: HeadShot System [Explained] - by GhostHacker9 - 20.01.2017, 08:28

Forum Jump:


Users browsing this thread: 1 Guest(s)