Forward Deklarationen?

Previous topic - Next topic

Kitty Hello

Oh, that was a bad one!
In function CreateGameObject: ...

Code (glbasic) Select
FUNCTION CreateGameObject: iNewType, iX, iY, iXDir,iYDir
LOCAL pNew AS TGAMEOBJECT
        ...
RETURN pNew
ENDFUNCTION
See the mistake? You return a TYPE in a function returning a numnber. Thus:
Code (glbasic) Select
FUNCTION CreateGameObject AS TGAMEOBJECT: iNewType, iX, iY, iXDir,iYDirshould work.
...and i does! Yay!
I try making this error more obvious in a new version.

Zapper

Oh, indeed. Thanks
Any use in switching to english? :)

Kitty Hello

On Tschuldigung. Ich hab immer 5 Tabs gleichzeitig auf, da komm ich manchmal durcheinander ;)