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.

AppGameKit Classic Chat / Return Error Message

Author
Message
Dave47
10
Years of Service
User Offline
Joined: 30th Aug 2014
Location:
Posted: 30th Aug 2014 18:24
I have a game which worked perfectly until Alpha 5 and know get the attached error when stopping program. Any ideas?

Attachments

Login to view attachments
Clonkex
Forum Vice President
15
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 31st Aug 2014 04:58 Edited at: 31st Aug 2014 05:00
Probably you've got a Return and you have called Gosub (as it says), but the compiler hasn't picked up on the problem until now.

This code will (should) cause the error:



Whereas this code is how it should work:



Tip: You should always have an End statement before any... umm... what are they called? The "thing:" gosub/goto things.... The following code will still get the error, even though gosub is called, because the code will go into the gosub, return, and continue running down into the gosub again:



Login to post a reply

Server time is: 2025-05-24 02:57:43
Your offset time is: 2025-05-24 02:57:43