Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,420 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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
Twickenham,England
kiamonster Offline OP
Member
kiamonster  Offline OP
Member

Joined: Apr 2002
Posts: 225
Twickenham,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: kiamonster] #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
Twickenham,England
kiamonster Offline OP
Member
kiamonster  Offline OP
Member

Joined: Apr 2002
Posts: 225
Twickenham,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: kiamonster] #250760
02/09/09 16:50
02/09/09 16:50
Joined: Apr 2002
Posts: 225
Twickenham,England
kiamonster Offline OP
Member
kiamonster  Offline OP
Member

Joined: Apr 2002
Posts: 225
Twickenham,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: kiamonster] #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