Author Topic: Forward Deklarationen?  (Read 8573 times)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10817
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Forward Deklarationen?
« Reply #15 on: 2007-Dec-29 »
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

  • Guest
Forward Deklarationen?
« Reply #16 on: 2007-Dec-29 »
Oh, indeed. Thanks
Any use in switching to english? :)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10817
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Forward Deklarationen?
« Reply #17 on: 2007-Dec-29 »
On Tschuldigung. Ich hab immer 5 Tabs gleichzeitig auf, da komm ich manchmal durcheinander ;)