Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / #100008: Parameter for 'MakeASprite' do not match 'Integer' in line 39

Author
Message
orv
22
Years of Service
User Offline
Joined: 9th Sep 2003
Location: Chicago, IL
Posted: 11th Oct 2003 22:32

First of all, the MakeASprite() is not in line 39...
it starts in line 418!

the editor is really screwy... no matter.

MakeASprite works fine, at least until I inserted the function above it.

If i insert a function between MakeASprite and that function, i get the same error but on the function i just pasted Arrrggg!

what is this error "supposed" to mean?

I'm spending 95% of my time trying to work around the compiler issues instead of working on my project!!

the MakeAPlain was in between first.

MakeASprite worked fine before i pasted the MakeRoad line.

even if i remark out all the MakeRoad's innards i still get the error!

I've been working on this for at least a couple hours.

If you aim at nothing you'll hit it every time. 806mhz AMD Athlon Processor. 384MB memory.
Windows XP Home Edition. RADEON 9700 Pro graphics card.
orv
22
Years of Service
User Offline
Joined: 9th Sep 2003
Location: Chicago, IL
Posted: 11th Oct 2003 22:56
WEIRD UPDATE:

If i insert the following function between the two functions, everything compiles ok....

Go figure!!!

i wonder if this should be consider a DBPRo bug?

also if i give the dummy function any parameters at all i get the same error.

If you aim at nothing you'll hit it every time. 806mhz AMD Athlon Processor. 384MB memory.
Windows XP Home Edition. RADEON 9700 Pro graphics card.
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 11th Oct 2003 23:25
We cant test it as you haven't included the structures.


Avatar & Logo by Indi. Insert witty comment here...
the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 11th Oct 2003 23:38
Try deleteing the .dbpro (project file) and making a new one, back it up or just rename it if you want to keep the old one.
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 11th Oct 2003 23:44
I think it must be getting confused over type declarations. Almost as if the default vartype is being changed by the presence of other types.

I pasted the code once, got the error. Deleted it, pasted it again and it ran fine. Weird.

Login to post a reply

Server time is: 2026-07-26 05:02:28
Your offset time is: 2026-07-26 05:02:28