Jump and Run Errors

Previous topic - Next topic

xxbastianxx

I put the Data in a Zip File...

MrTAToad

I came across the following errors :

QuoteTYPE TMap has no member NextMap$
GPC0007 wrong argument type : TYPE  is not declared (IF BOXCOLL(Enem.x, Enem.y, Enem.width, Enem.height, x*Tilesize, y*Tilesize, Tilesize, Tilesize) THEN DELETE Enem line)
"PLAYMUSIC" called with 1 args. Required: 2 to 2
"Button" called with 3 args. Required: 2 to 2 (3 times)
call to undefined function : STRETCHSPRITE, (shouldn't have the comma)
TYPE TMap has no member TielsetPath$
and various other problems.

But yes, x = INTEGER is a syntax error (it needs a parameter like x = INTEGER(4) )

xxbastianxx

Ok, thank you. I ll try and fix that ;)

xxbastianxx

#18
I've fixed all i could but there are still some mistakes, which I dont understand since the compiler gives me "FATAL ERROR"  :giveup:

Could somebody help me fix them ? Please.  :-[


C:\Users\SEBAST~1\AppData\Local\Temp\glbasic\gpc_temp0.cpp: In function `int __GLBASIC__::__MainGameSub_()':
C:\Users\SEBAST~1\AppData\Local\Temp\glbasic\gpc_temp0.cpp:505: error: a function-definition is not allowed here before '{' token


By now only the last 2 mistakes are not found yet. :(
It's keeping me up...

I've checked the WEND's/ENDIF's... they r all there.

MrTAToad

Sounds like you have an ENDIF/WEND/UNTIL missing

With "TurnImage' was not declared in this scope " there needs to be a function somewhere called that.

xxbastianxx

I fixed the one with the TurnImage... the function was missing

But I cant find the other ones.

Can i post you my code like it is now and could you please have a look ?

That would be awesome!

xxbastianxx

#21
Updated only 2 Mistakes now

MrTAToad

Quite simple :

Code (glbasic) Select
SELECT Action
CASE 1
Gamestate = STATE_IS_GAME

CASE 2
Gamestate% = STATE_IS_EDIT

CASE 3
ENDSELECT


Had a missing ENDSELECT

and

Code (glbasic) Select
SELECT TRUE
CASE DDgui_get("tilepicker", "CLICKED")
SELECT DDgui_getitemtext$("tilepicker", DDgui_get("tilepicker", "SELECT"))


CASE "Leer"
SelectTile = 0
CASE "Solide"
SelectTile = 1
CASE "Trampolin"
SelectTile = 5
CASE "Stachel"
SelectTile = 3
CASE "Starter"
SelectTile = 4
CASE "Leiter"
SelectTile = 2
CASE "Schwein"
SelectTile = 6
EditorEnemy.Init(IS_PIG, 0, 0)
CASE "Vogel"
SelectTile = 8
EditorEnemy.Init(IS_BIRD, 0, 0)
CASE "Boss"
SelectTile = 7
EditorEnemy.Init(IS_BOSS, 0, 0)
CASE "Teleport"
SelectTile = 10

ENDSELECT


Had one too many ENDSELECT

Change your code accordingly (and you will then get an error about "no matching function for call to `__GLBASIC__::TEnemy::Update()'", which you need to fix, after will all will work okay.

xxbastianxx

Thank You lots!!!

It works :) YAY* Just a little problems with starting.

Thank you sooo much!