Gamestudio Links
Zorro Links
Newest Posts
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
FXCM => AVA Trade Plugin???
by Martin_HH. 11/17/26 17:02
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Martin_HH), 25,240 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Bad function call #250610
02/09/09 00:37
02/09/09 00:37
Joined: Apr 2002
Posts: 225
Sunbury-On-Thames, England
EW_bytes Offline OP
Member
EW_bytes  Offline OP
Member

Joined: Apr 2002
Posts: 225
Sunbury-On-Thames, England
I coded a function with 1 parameter [function fred(p1)] and called it successfully with fres(6). v5 mentallity.
However, decided to experiment with more than 1 parmeter:
function fres(p1,p2). This passed the syntax check.
When I called it with fred(6,8) it said bad or missing parameter!
I used the v6 walk_thru for the build.
Have I hit a non compatible error or what have I done wrong please?

Re: Bad function call [Re: EW_bytes] #250739
02/09/09 15:08
02/09/09 15:08
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Look for an OLD function thats calling on "fred" with only one parameter.
Now that it is defined as having two parameters, it can ONLY be called
using BOTH parameters.

Otherwise post your whole code and I'll have a look.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Bad function call [Re: EvilSOB] #250756
02/09/09 16:25
02/09/09 16:25
Joined: Apr 2002
Posts: 225
Sunbury-On-Thames, England
EW_bytes Offline OP
Member
EW_bytes  Offline OP
Member

Joined: Apr 2002
Posts: 225
Sunbury-On-Thames, England
Thanks Evilsob.
Parameter numbers were universal.
Just got a function call with 4 parameters working, so I made a mistake (probably very very silly when I find it) elsewhere!
Thanks again for the offer of help.

Last edited by kiamonster; 02/09/09 16:52.
Re: Bad function call [Re: EW_bytes] #250760
02/09/09 16:50
02/09/09 16:50
Joined: Apr 2002
Posts: 225
Sunbury-On-Thames, England
EW_bytes Offline OP
Member
EW_bytes  Offline OP
Member

Joined: Apr 2002
Posts: 225
Sunbury-On-Thames, England
Well. I promised silly and....
I called it 'fred' so it wouldn't get confused with a dummy function. However it was said dummy function it required (beaten by my own safeguard).
So the single pass compiler beat me again!
Sorry for the inconvenience.
I'm going off to SULK.
Thanks again Evilsob..

Last edited by kiamonster; 02/09/09 16:54.
Re: Bad function call [Re: EW_bytes] #250841
02/10/09 06:50
02/10/09 06:50
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
No worries. Happens to the best of us....even me!


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1