Hi volks,
I have changed the russian texts from "Exp - LineOfZERO.mq4" to english.
At compilation I received a warning message, that I can´t find at the http://www.mql5.com/en/docs/constants/e ... ngscompile.
What says:
declaration of 'OP' hides global declaration at line 11 10.7 LINE OF ZERO.mq4 25 22
Means that, that the code of line 25 overrides the value of the global var?
Thanks a lot.
Attached the translatet indi.
Question to LineOfZERO Warnings
-
genaja
- Trader
- Posts: 52
- Joined: Wed Mar 21, 2012 12:42 pm
Question to LineOfZERO Warnings
You do not have the required permissions to view the files attached to this post.
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
Question to LineOfZERO Warnings
you should only one time use the same name for a variable, attached the version that gives no warnings.. Cheersgenaja » Fri Jun 13, 2014 8:54 am wrote:Hi volks,
I have changed the russian texts from "Exp - LineOfZERO.mq4" to english.
At compilation I received a warning message, that I can´t find at the http://www.mql5.com/en/docs/constants/e ... ngscompile.
What says:
declaration of 'OP' hides global declaration at line 11 10.7 LINE OF ZERO.mq4 25 22
Means that, that the code of line 25 overrides the value of the global var?
Thanks a lot.
Attached the translatet indi.
Tommaso
You do not have the required permissions to view the files attached to this post.
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
-
genaja
- Trader
- Posts: 52
- Joined: Wed Mar 21, 2012 12:42 pm
Question to LineOfZERO Warnings
Hi Tommaso,you should only one time use the same name for a variable, attached the version that gives no warnings..
Cheers
Tommaso
thanks for your great help!
Var names only one times, thats clear.
Is the global set for OP only for this line:
SetHLine(DarkOrange,"LineofZERO",startZERO(OP));
And after that the value for startZERO(OP) comes out of the function?
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
Question to LineOfZERO Warnings
you call the function with giving the value of OP to the new varibale int op, so op has the same value like OPgenaja » Fri Jun 13, 2014 10:54 am wrote:Hi Tommaso,you should only one time use the same name for a variable, attached the version that gives no warnings..
Cheers
Tommaso
thanks for your great help!
Var names only one times, thats clear.
Is the global set for OP only for this line:
SetHLine(DarkOrange,"LineofZERO",startZERO(OP));
And after that the value for startZERO(OP) comes out of the function?
Cheers
Tommaso
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
-
genaja
- Trader
- Posts: 52
- Joined: Wed Mar 21, 2012 12:42 pm
Question to LineOfZERO Warnings
you call the function with giving the value of OP to the new varibale int op, so op has the same value like OP
o.k. thanks a lot!