is difference - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: is difference (
/showthread.php?tid=637813)
is difference -
Bussyman - 21.07.2017
Hi,
Is there any difference
Код:
new numberrs[ 2 ];
if( numberrs[ 0 ] + numberrs[ 1 ] > 100 )
{
}
and
if( (numberrs[ 0 ] + numberrs[ 1 ]) > 100 )
{
}
Re: is difference -
Paulice - 21.07.2017
There's no difference in that case.
Example where a difference is present: If you use the equal operator "=" then there is a difference as the entire statement is accounted. Parenthesis will indicate to only account what's within it.
Re: is difference -
Vince - 21.07.2017
Pawn Language Guide, pages 111 and 112.
Re: is difference -
nG Inverse - 21.07.2017
Quote:
Originally Posted by Vince
Pawn Language Guide, pages 111 and 112.
|
Despite, still no difference here.
Re: is difference -
Hansrutger - 21.07.2017
I guess I'll never learn pawn
Re: is difference -
Meller - 22.07.2017
Its basic math..
Is (0+0) greater than 100.
5(2+5) = 5*2+5*5
9(7/100) = 9*7 = a, 9*100 = b, a/b is result
3*(7-3) = 3*7-3*3
9*(5+7) = 9(5+7) = 9*5+9*7
Didn't you learn this in like, 7th grade? I did atleast..
Re: is difference -
Vince - 22.07.2017
Quote:
Originally Posted by nG Inverse
Despite, still no difference here.
|
Did I say it would?
Quote:
Originally Posted by Hansrutger
I guess I'll never learn pawn
|
Sites like these are complete rip-offs because that document is publicly available. I've also seen other sites that try to get you to pay for product manuals which are also publicly available.